]> granicus.if.org Git - zfs/commit
ZTS: fix spurious failures in mv_files
authorchrisrd <chris@onthe.net.au>
Fri, 2 Mar 2018 17:57:29 +0000 (04:57 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 2 Mar 2018 17:57:29 +0000 (09:57 -0800)
commitd0f6fbaff383d0ea0b11f4e4547d6b062ef7ddad
tree0d2f13081c7999cae8cc2c7462b4e702cb61aaa6
parente086e717c3fc2c5b0867ee4b5ec07200a53b8dac
ZTS: fix spurious failures in mv_files

The test could fail because of a race condition between the files being
generated in the background and attempting to move the files. Wait for
all file generation to complete before trying to move the files around.

Also, clean up the waiting: the 'wait' command without arguments waits
for all child pids.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Dunlop <chris@onthe.net.au>
Closes #7220
Closes #7242
Closes #7258
tests/zfs-tests/tests/functional/mv_files/mv_files_common.kshlib