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:
parent
e0785ebbbd
commit
4ff7e05951
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue