All of lore.kernel.org
 help / color / mirror / Atom feed
* generic/411 clash with TEST_DIR=/mnt
@ 2017-03-07 16:50 Darrick J. Wong
  2017-03-08  3:50 ` Zorro Lang
  0 siblings, 1 reply; 9+ messages in thread
From: Darrick J. Wong @ 2017-03-07 16:50 UTC (permalink / raw)
  To: Zorro Lang; +Cc: fstests

Hi Zorro,

I noticed that generic/411 creates some sort of directory structure
involving $TEST_DIR/$seq/$$_mpA/mnt1/mnt2, then pipes the findmnt output
through _filter_test_dir.

Unfortunately, on my test system I have TEST_DIR=/mnt, so the filtering
produces this output:

QA output created by 411
------
TEST_DIR/411 SCRATCH_DEV
mpA SCRATCH_DEV
mpATEST_DIR1 SCRATCH_DEV
mpB SCRATCH_DEV
mpBTEST_DIR1 SCRATCH_DEV
mpBTEST_DIR1/TEST_DIR2 SCRATCH_DEV
mpC SCRATCH_DEV
mpCTESTDIR1 SCRATCH_DEV
======
crash test passed

Which means that the golden output comparison fails. :(

I'm not sure what's a proper fix here: changing _filter_test_dir to be
more picky about what gets sed'ed?

e.g. sed -e "s,\([[:space:]]\)$TEST_DIR,\1TEST_DIR,g/"

Or just to change the test to use directory names that are less likely to be
mistaken for TEST_* and SCRATCH_*?

--D

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

end of thread, other threads:[~2017-03-08 18:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-07 16:50 generic/411 clash with TEST_DIR=/mnt Darrick J. Wong
2017-03-08  3:50 ` Zorro Lang
2017-03-08  6:09   ` Eryu Guan
2017-03-08  6:29     ` Zorro Lang
2017-03-08 18:11     ` Darrick J. Wong
2017-03-08 18:38       ` Zorro Lang
2017-03-08  6:50   ` Amir Goldstein
2017-03-08  7:14     ` Zorro Lang
2017-03-08  8:20       ` Amir Goldstein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.