tst_test.sh: Fix TST_NEEDS_DEVICE=1 implies TST_NEEDS_TMPDIR=1
PATCH 1/1 tst_test.sh: Fix TST_NEEDS_DEVICE=1 implies TST_NEEDS_TMPDIR=1
e5dd9c0e7 set TST_TMPDIR=1 instead, which is wrong, because variable holds path to the test temporary directory. That broke IMA/EVM tests running on tmpfs (which creates loop device via TST_NEEDS_DEVICE=1):
/opt/ltp/testcases/bin/ima_measurements.sh: 107: cd: can't cd to 1
which also broke umount in cleanup()
umount: /root/mntpoint: target is busy.ima_measurements 1 TINFO: umount(/dev/loop14) failed, try 1 ... ima_measurements 1 TINFO: Likely gvfsd-trash is probing newly mounted fs, kill it to speed up tests.
umount: /root/mntpoint: target is busy.
--- testcases/lib/tst_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/lib/tst_test.sh +1 -1
@@ -550,7 +550,7 @@ tst_run() _tst_setup_timer - [ "$TST_NEEDS_DEVICE" = 1 ] && TST_TMPDIR=1 + [ "$TST_NEEDS_DEVICE" = 1 ] && TST_NEEDS_TMPDIR=1 if [ "$TST_NEEDS_TMPDIR" = 1 ]; then if [ -z "$TMPDIR" ]; then
Signature · 1 line
2.26.2
PATCH 1/1 tst_test.sh: Fix TST_NEEDS_DEVICE=1 implies TST_NEEDS_TMPDIR=1
Hi,
I'm sorry I forget to add prefix [COMMITTED].
Kind regards,
Petr