From 4ff7e059515e62b33937d51ecc5d9afff0049b55 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 1 Dec 2018 16:44:53 +0200 Subject: [PATCH] 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 --- tests/hwsim/run-all.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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