From: Jouni Malinen Date: Sat, 1 Dec 2018 14:44:53 +0000 (+0200) Subject: tests: Do not generate /tmp/hwsim-tests-*.tar.gz in VM case X-Git-Tag: hostap_2_7~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ff7e059515e62b33937d51ecc5d9afff0049b55;p=thirdparty%2Fhostap.git tests: Do not generate /tmp/hwsim-tests-*.tar.gz in VM case There is no point in building this tarball in /tmp that is on the ramdisk of the VM since it will go away when the VM exits. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/run-all.sh b/tests/hwsim/run-all.sh index 94aa19082..3b91dc08c 100755 --- a/tests/hwsim/run-all.sh +++ b/tests/hwsim/run-all.sh @@ -142,7 +142,9 @@ if [ ! -z "$CODECOV" ] ; then fi if [ $errors -gt 0 ]; then - tar czf /tmp/hwsim-tests-$DATE-FAILED$SUFFIX.tar.gz $LOGDIR/ + if [ -z $VM ]; then + tar czf /tmp/hwsim-tests-$DATE-FAILED$SUFFIX.tar.gz $LOGDIR/ + fi exit 1 fi