From: Tobias Brunner Date: Thu, 21 Jul 2016 13:02:20 +0000 (+0200) Subject: testing: Create a symlink to the testresults under a known path when starting the... X-Git-Tag: 5.5.1dr3~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a8985b5752e8d19d2b83b7a7641698a7ecadb49;p=thirdparty%2Fstrongswan.git testing: Create a symlink to the testresults under a known path when starting the environment --- diff --git a/testing/start-testing b/testing/start-testing index d339ac025f..31097a8b75 100755 --- a/testing/start-testing +++ b/testing/start-testing @@ -9,6 +9,7 @@ CONFDIR=$DIR/config/kvm KNLSRC=$BUILDDIR/$KERNEL/arch/x86/boot/bzImage KNLTARGET=/var/run/kvm-swan-kernel HOSTFSTARGET=/var/run/kvm-swan-hostfs +TESTRESTULSTARGET=/var/run/kvm-swan-testresults MCASTBRS="test-br0 test-br1" echo "Starting test environment" @@ -26,6 +27,9 @@ log_action "Deploying $SHAREDDIR as hostfs" execute "chown -R $KVMUSER:$KVMGROUP $SHAREDDIR" 0 execute "ln -Tfs $SHAREDDIR $HOSTFSTARGET" +log_action "Deploying $TESTRESULTSDIR as hostfs" +execute "ln -Tfs $TESTRESULTSDIR $TESTRESTULSTARGET" + for net in $NETWORKS do log_action "Network $net" diff --git a/testing/stop-testing b/testing/stop-testing index 704ae66674..8abf5f2239 100755 --- a/testing/stop-testing +++ b/testing/stop-testing @@ -9,6 +9,7 @@ echo "Stopping test environment" NETWORKS="vnet1 vnet2 vnet3" KNLTARGET=/var/run/kvm-swan-kernel HOSTFSTARGET=/var/run/kvm-swan-hostfs +TESTRESULTSTARGET=/var/run/kvm-swan-testresults [ `id -u` -eq 0 ] || die "You must be root to run $0" @@ -32,3 +33,6 @@ execute "rm $KNLTARGET" log_action "Removing link to hostfs" execute "rm $HOSTFSTARGET" + +log_action "Removing link to testresults" +execute "rm $TESTRESULTSTARGET"