aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2023-07-31 22:30:54 -0400
committerTheodore Ts'o <tytso@mit.edu>2023-07-31 22:30:54 -0400
commitb8e755a2ecef19334c52d31954cdce1c2e06bfd0 (patch)
treebada01406e79b6cfd90fa8c4f5a61b6b512e4b5a
parent267defe8471ea9cd11ac0da88465287ee326f636 (diff)
downloadxfstests-bld-b8e755a2ecef19334c52d31954cdce1c2e06bfd0.tar.gz
gce-xfstests: make sure the /tmp/gce-xfstests.config.XXXXXX is deleted
The temp file /tmp/gce-xfstests.config.XXXXXX was cleaned up via a relied on a "trap -.. EXIT" statement. The problem is that the parse_cli script also uses a trap statement to clean up files on exit. Since we only need to use the temp file for a very short section of the script, just delete the temp file once we're done needing it. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rwxr-xr-xrun-fstests/gce-xfstests2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-fstests/gce-xfstests b/run-fstests/gce-xfstests
index 0ebec194..cec38360 100755
--- a/run-fstests/gce-xfstests
+++ b/run-fstests/gce-xfstests
@@ -785,6 +785,8 @@ then
fi
fi
fi
+rm -f "$TMP_CONFIG"
+trap - EXIT
# Simulate how parse_cli handles --no-action if this option was specified
# as the first argument and we are running a test.