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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2018-12-01 16:44:53 +02:00
parent e0785ebbbd
commit 4ff7e05951

View file

@ -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