diff options
author | Theodore Ts'o <tytso@mit.edu> | 2023-07-31 22:30:54 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-07-31 22:30:54 -0400 |
commit | b8e755a2ecef19334c52d31954cdce1c2e06bfd0 (patch) | |
tree | bada01406e79b6cfd90fa8c4f5a61b6b512e4b5a | |
parent | 267defe8471ea9cd11ac0da88465287ee326f636 (diff) | |
download | xfstests-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-x | run-fstests/gce-xfstests | 2 |
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. |