From 008a9ad12c6d577caf963057f8c065e0d246ca39 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 3 Aug 2015 13:34:05 +0200 Subject: [PATCH] testing: Don't run do-tests when hosts are not running running_any is satisfied if at least one host is running. We could easily add a running_all() helper to check if all hosts are running if it turns out that's not strong enough. --- testing/do-tests | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/do-tests b/testing/do-tests index 5d72d5c1af..f12101926a 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -23,6 +23,7 @@ SSHCONF="-F $DIR/ssh_config" [ -d $DIR/tests ] || die "Directory 'tests' not found" [ -d $BUILDDIR ] || die "Directory '$BUILDDIR' does not exist, please run make-testing first" +running_any $STRONGSWANHOSTS || die "Please start test environment before running $0" ln -sfT $DIR $TESTDIR/testing -- 2.47.2