Ensure onos-dist-verify script does not block indefinitely when disruptor is running at the end of the test
Change-Id: I9acb0772036065bb8563342e60c299ec634ba4c8
diff --git a/tools/test/bin/onos-dist-verify b/tools/test/bin/onos-dist-verify
index 9106428..b5e997f 100755
--- a/tools/test/bin/onos-dist-verify
+++ b/tools/test/bin/onos-dist-verify
@@ -108,9 +108,9 @@
# Once all processes have completed, stop the disruptor.
disruptor.stop()
- # Wait for the disruptor thread to complete to ensure partitions are healed and crashed nodes are recovered.
- if not disruptor.is_running():
- break
+ # Wait for the disruptor thread to complete to ensure partitions are healed and crashed nodes are recovered.
+ if not disruptor.is_running():
+ break
# If we haven't broken out of the loop by now, sleep and then check again.
time.sleep(1)