public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic: fix cleanup function for test 490
@ 2018-05-20 18:45 Theodore Ts'o
  2018-05-21  2:29 ` Eryu Guan
  2018-05-21  2:41 ` Dave Chinner
  0 siblings, 2 replies; 14+ messages in thread
From: Theodore Ts'o @ 2018-05-20 18:45 UTC (permalink / raw)
  To: fstests; +Cc: jack, guaneryu, Theodore Ts'o

generic/490 fails because cleanup tries to delete . and .. since $tmp
is left unset, and so "rm -f $tmp.*" does nothing useful.  Instead
delete temp files created by seek_sanity_test.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
 tests/generic/490 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/490 b/tests/generic/490
index b5042c2e..c0335ca0 100755
--- a/tests/generic/490
+++ b/tests/generic/490
@@ -49,7 +49,7 @@ _require_test_program "seek_sanity_test"
 _cleanup()
 {
 	cd /
-	rm -f $tmp.*
+	rm -f $base_test_file*
 }
 
 $here/src/seek_sanity_test -s 19 -e 20 $base_test_file > $seqres.full 2>&1 ||
-- 
2.16.1.72.g5be1f00a9a


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-05-27 12:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-20 18:45 [PATCH] generic: fix cleanup function for test 490 Theodore Ts'o
2018-05-21  2:29 ` Eryu Guan
2018-05-21  2:41 ` Dave Chinner
2018-05-21  2:54   ` Eryu Guan
2018-05-25  0:29     ` Dave Chinner
2018-05-25  0:59       ` Widespread test setup template problems (was Re: [PATCH] generic: fix cleanup function for test 490) Dave Chinner
2018-05-25  1:23         ` Dave Chinner
2018-05-25  4:17           ` Eric Biggers
2018-05-25  6:25             ` Dave Chinner
2018-05-25  8:06               ` Amir Goldstein
2018-05-25  8:45                 ` Dave Chinner
2018-05-25 22:33                   ` Eric Biggers
2018-05-25 23:25                     ` Dave Chinner
2018-05-27 12:38           ` Eryu Guan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox