From dfb47f59075b21d2b481c1fb8aac963ea1c97c67 Mon Sep 17 00:00:00 2001 From: Ernest Wong Date: Thu, 15 Nov 2018 10:27:03 +1300 Subject: [PATCH] Filesystem Tests: Add stopping-on-first-failure option --- tests/devices/virtio_9p.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/devices/virtio_9p.js b/tests/devices/virtio_9p.js index c46ef55d..863ea244 100755 --- a/tests/devices/virtio_9p.js +++ b/tests/devices/virtio_9p.js @@ -7,6 +7,7 @@ const fs = require("fs"); const testfsjson = require("./testfs.json"); const SHOW_LOGS = false; +const STOP_ON_FIRST_FAILURE = false; function log_pass(msg, ...args) { @@ -1807,6 +1808,11 @@ function report_test() else { log_fail("Test #%d failed: %s", test_num, tests[test_num].name); + + if(STOP_ON_FIRST_FAILURE) + { + finish_tests(); + } } test_has_failed = false; }