From e54c2756853c97011619d62cee6547e5602e3e88 Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Mon, 18 May 2020 17:01:46 +0200 Subject: [PATCH] fix --- run_tests | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run_tests b/run_tests index 6821155..7fdb0ea 100755 --- a/run_tests +++ b/run_tests @@ -6,6 +6,9 @@ if [ "$USER" != "root" ]; then exit 1 fi +#reactivate python environment, if any (usefull in Travis) +[ "$VIRTUAL_ENV" ] && source $VIRTUAL_ENV/bin/activate + echo "####################################################" echo "##### Unit testing against" echo "##### Python : `python --version 2>&1 |sed 's/.* //'`" @@ -13,8 +16,6 @@ echo "##### ZFS userspace : `dpkg-query -W zfsutils-linux |cut -f2`" echo "##### ZFS kernel : `modinfo zfs|grep ^version |sed 's/.* //'` " echo "####################################################" -#reactivate python environment, if any (usefull in Travis) -[ "$VIRTUAL_ENV" ] && source $VIRTUAL_ENV/bin/activate # test needs ssh access to localhost for testing if ! [ -e /root/.ssh/id_rsa ]; then