mononoke: fix test

Summary: test-init.t and test-lfs-to-mononoke.t were failing. This diff fixes them

Differential Revision: D13301143

fbshipit-source-id: 1f8060d4c6b641c555ba8a5cdcfe4cb14ac89d0a
This commit is contained in:
Stanislau Hlebik 2018-12-03 02:12:11 -08:00 committed by Facebook Github Bot
parent ec86d453ae
commit a9d81657d0
2 changed files with 4 additions and 1 deletions

View File

@ -243,7 +243,9 @@ function no_ssl_apiserver {
function wait_for_apiserver {
for _ in $(seq 1 200); do
PORT=$(grep "Listening to" < "$TESTTMP/apiserver.out" | grep -Pzo "(\\d+)\$") && break
if [[ -a "$TESTTMP/apiserver.out" ]]; then
PORT=$(grep "Listening to" < "$TESTTMP/apiserver.out" | grep -Pzo "(\\d+)\$") && break
fi
sleep 0.1
done

View File

@ -121,6 +121,7 @@ start mononoke
$ wait_for_mononoke $TESTTMP/repo
$ hgmn debugwireargs ssh://user@dummy/disabled_repo one two --three three
remote: * DEBG Session with Mononoke started with uuid: * (glob)
remote: * ERRO Requested repo "disabled_repo" does not exist or disabled (glob)
abort: no suitable response from remote hg!
[255]
$ hgmn debugwireargs ssh://user@dummy/repo one two --three three