hopefully fixes regex matching of stderr

This commit is contained in:
Fredrik Eriksson 2020-01-28 18:17:08 +01:00
parent fd942a8d7e
commit 0fe2d2ed30
Signed by: feffe
GPG Key ID: 18524638BE25530A

View File

@ -3,6 +3,7 @@
import argparse import argparse
import datetime import datetime
import os import os
import re
import shutil import shutil
import subprocess import subprocess
import sys import sys
@ -194,7 +195,7 @@ def main():
if res in args.success_exit_codes: if res in args.success_exit_codes:
# Possible success, check error output # Possible success, check error output
re_checks = [re.compile(r) for r in args.ignore_error] re_checks = [re.compile(r) for r in args.err_re]
ok = True ok = True
with open(errfile, 'r') as f: with open(errfile, 'r') as f:
for line in f: for line in f: