From 0094e3ffa29f3f9db5ba91b14be34f5bd38aca94 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 13 May 2016 19:46:12 +0200 Subject: [PATCH] tests: add option for listing all failed case IDs --- tests/run.rb | 4 ++++ tests/test.d/controller.rb | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/tests/run.rb b/tests/run.rb index ecd8485a4..1ebff095b 100755 --- a/tests/run.rb +++ b/tests/run.rb @@ -57,9 +57,13 @@ def main tests = controller.results.results.keys.collect { |e| re.match(e) ? $1 : nil }.compact error_and_exit "No tests matched RE #{re}" if tests.empty? tests.each { |e| controller.add_test_case e } + elsif ((arg == "-F" || (arg == "--list-failed"))) + controller.list_failed_ids + exit 0 elsif ((arg == "-h") || (arg == "--help")) puts <