aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-08-03 13:34:05 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-03 13:34:05 +0200
commit008a9ad12c6d577caf963057f8c065e0d246ca39 (patch)
tree6957e7e069b87aec2faffdee44d22229428713ff /testing
parent50dd7de226a753fc94a3d312a8d8398f5ecf57f9 (diff)
downloadstrongswan-008a9ad12c6d577caf963057f8c065e0d246ca39.tar.bz2
strongswan-008a9ad12c6d577caf963057f8c065e0d246ca39.tar.xz
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.
Diffstat (limited to 'testing')
-rwxr-xr-xtesting/do-tests1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/do-tests b/testing/do-tests
index 5d72d5c1a..f12101926 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