]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Do not generate /tmp/hwsim-tests-*.tar.gz in VM case
authorJouni Malinen <j@w1.fi>
Sat, 1 Dec 2018 14:44:53 +0000 (16:44 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 1 Dec 2018 18:30:09 +0000 (20:30 +0200)
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 <j@w1.fi>
tests/hwsim/run-all.sh

index 94aa19082cf8a9c442c96a4562e8da2f2e94d9bf..3b91dc08c2497689ee524d63f1c7b84973d365a3 100755 (executable)
@@ -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