f2fs/009: Add delay after killing socket tool
PATCH 1/1 f2fs/009: Add delay after killing socket tool
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(+)
tests/f2fs/009 +2 -0
@@ -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
Signature · 1 line
2.51.0.618.g983fd99d29-goog
Quoted 7 lines · Jan Prusakowski
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]>
Reviewed-by Chao Yu <[email protected]>
Thanks,