From a9d81657d0cd29962f8866592af2960398fbbcae Mon Sep 17 00:00:00 2001 From: Stanislau Hlebik Date: Mon, 3 Dec 2018 02:12:11 -0800 Subject: [PATCH] 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 --- tests/integration/library.sh | 4 +++- tests/integration/test-init.t | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/library.sh b/tests/integration/library.sh index 3521d16c2c..3ee4e987d8 100644 --- a/tests/integration/library.sh +++ b/tests/integration/library.sh @@ -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 diff --git a/tests/integration/test-init.t b/tests/integration/test-init.t index 92e97bafa1..05e8fee8cc 100644 --- a/tests/integration/test-init.t +++ b/tests/integration/test-init.t @@ -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