Skip to content

Commit 61bd0c9

Browse files
committed
Filter stderr
1 parent 7f09d44 commit 61bd0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/run-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
passed, failed, verbose, quiet = 0, 0, 0, 0
77

88
def run (forthfile):
9-
return os.popen ("gforth ../ttester-codewars.4th " + forthfile + " -e bye 2>/dev/null").readlines ()
9+
return os.popen ("bash -c 'gforth ../ttester-codewars.4th " + forthfile + " -e bye 2> >(sed -E \"s/redefined [^ ]+ //g\" >&2)'").readlines ()
1010

1111
def timeless (lines):
1212
return [re.sub(r'\d+', '0', l) if "<COMPLETEDIN::>" in l else l for l in lines]

0 commit comments

Comments
 (0)