testing: Create a symlink to the testresults under a known path when starting the environment

This commit is contained in:
Tobias Brunner
2016-08-29 18:11:42 +02:00
parent cf6042453f
commit 7a8985b575
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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"