From: David Sterba Date: Tue, 19 Mar 2024 18:12:07 +0000 (+0100) Subject: common/rc: use proper temporary file path in _repair_test_fs() X-Git-Tag: v2024.03.31~13 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ac004a25238cc0da321cf3496fc0215a446e7284;p=xfstests-dev.git common/rc: use proper temporary file path in _repair_test_fs() The path /tmp.repair would be on the system root that could not be writable, the temporary files are available at $tmp . Reviewed-by: Anand Jain Signed-off-by: David Sterba Signed-off-by: Anand Jain --- diff --git a/common/rc b/common/rc index 37d26bf2..ff2949bd 100644 --- a/common/rc +++ b/common/rc @@ -1301,9 +1301,9 @@ _repair_test_fs() ;; btrfs) echo 'yes|$BTRFS_UTIL_PROG check --repair --force "$TEST_DEV"' > \ - /tmp.repair 2>&1 + $tmp.repair 2>&1 yes | $BTRFS_UTIL_PROG check --repair --force "$TEST_DEV" >> \ - /tmp.repair 2>&1 + $tmp.repair 2>&1 res=$? ;; *)