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.
This commit is contained in:
Tobias Brunner 2015-08-03 13:34:05 +02:00
parent 50dd7de226
commit 008a9ad12c

View File

@ -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