From bbf1fd0846fa51f74ef01399ab005d4d847becce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 23 May 2026 21:45:02 +0200 Subject: Refactor test filtering to its own function and type --- test/script/output.et | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/script/output.et') diff --git a/test/script/output.et b/test/script/output.et index d3f0eea..f210490 100644 --- a/test/script/output.et +++ b/test/script/output.et @@ -22,8 +22,9 @@ test FlushOutput: expect /match p a/ expect /match-fail expect.*/ - expect /(run-.*)/ capture done - guard (done == "run-failed") + expect /run-test-result Test (.*)/ capture result + guard (result == "failed") + expect /run-done/ test IgnoreOutput: spawn as p @@ -51,5 +52,6 @@ test IgnoreOutput: expect /match p F/ expect /match-fail expect.*/ - expect /(run-.*)/ capture done - guard (done == "run-failed") + expect /run-test-result Test (.*)/ capture result + guard (result == "failed") + expect /run-done/ -- cgit v1.2.3