When running the test in a VM on a host with all CPUs busy, the kill command
returns before socket tool shuts down. This prevents unmounting the
scratch, causing the test to fail.

The added sleep ensures that the socket tool closes before the next test steps.

Signed-off-by: Jan Prusakowski <[email protected]>
---
 tests/f2fs/009 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/f2fs/009 b/tests/f2fs/009
index 7333d484..d4893139 100755
--- a/tests/f2fs/009
+++ b/tests/f2fs/009
@@ -95,6 +95,7 @@ pid=$!
 sleep 2
 ino=`stat -c '%i' $filename`
 kill $pid >> $seqres.full 2>&1
+sleep 2
 check_links 0 0 $ino
 
 ln -s $SCRATCH_MNT/empty $filename
@@ -127,6 +128,7 @@ pid=$!
 sleep 2
 ino=`stat -c '%i' $filename`
 kill $pid >> $seqres.full 2>&1
+sleep 2
 check_links 0 1 $ino
 
 ln -s $SCRATCH_MNT/empty $filename
-- 
2.51.0.618.g983fd99d29-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to