Skip to content

Commit

Permalink
Merge pull request rical#51 from kernelkit/master
Browse files Browse the repository at this point in the history
minor-changes-from-infix
  • Loading branch information
rical authored Sep 12, 2023
2 parents 8be47dd + d8a9f67 commit 616b5e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 9pm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3

import argparse
import os
Expand Down Expand Up @@ -36,6 +36,7 @@ class pcolor:
cyan = '\033[96m'
reset = '\033[0m'
orange = '\033[33m'
faint = '\033[2m'

def cprint(color, *args, **kwargs):
sys.stdout.write(color)
Expand All @@ -61,6 +62,7 @@ def execute(args, test):
not_ok = re.search('^not ok (\d+) -', string)
skip = re.search('^ok (\d+) # skip', string)
skip_suite = re.search('^ok (\d+) # skip suite', string)
comment = re.search('^\w*#', string)

if plan:
cprint(pcolor.purple, '{} {}'.format(stamp, string))
Expand All @@ -81,6 +83,8 @@ def execute(args, test):
cprint(pcolor.red, '{} {}'.format(stamp, string))
err = True
test['executed'] = not_ok.group(1)
elif comment:
cprint(pcolor.faint, '{} {}'.format(stamp, string))
else:
print("{} {}".format(stamp, string))

Expand Down

0 comments on commit 616b5e9

Please sign in to comment.