From 81af021292ccfa0e4b15642d72edb65285d6e817 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Wed, 23 Apr 2025 17:19:44 +0200 Subject: [PATCH] Wait for lazyfs to crash before unmount --- .../src/test/java/com/usatiuk/dhfs/integration/LazyFs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhfs-parent/dhfs-app/src/test/java/com/usatiuk/dhfs/integration/LazyFs.java b/dhfs-parent/dhfs-app/src/test/java/com/usatiuk/dhfs/integration/LazyFs.java index 5727ffda..ac30a4e9 100644 --- a/dhfs-parent/dhfs-app/src/test/java/com/usatiuk/dhfs/integration/LazyFs.java +++ b/dhfs-parent/dhfs-app/src/test/java/com/usatiuk/dhfs/integration/LazyFs.java @@ -172,7 +172,7 @@ public class LazyFs { try { var cmd = "echo \"lazyfs::crash::timing=after::op=write::from_rgx=*\" > " + fifoPath(); Log.info("Running command: " + cmd); - Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", cmd}); + Runtime.getRuntime().exec(new String[]{"/bin/sh", "-c", cmd}).waitFor(); stop(); } catch (Exception e) { throw new RuntimeException(e);