Permalink
Browse files

Parse two more projects in the wild tests.

- shell-script-library
- A Puppy Linux repo.  (One error: an instance of the ;& case
  terminator.)

Also print a better error message when the task status file is
malformed.  This can happen if we interrupt the job with Ctrl-C.
  • Loading branch information...
Andy Chu
Andy Chu committed Nov 15, 2017
1 parent 6ece464 commit dbc4727cb4aea8afc6baf5cfefd1a8474c4f261d
Showing with 9 additions and 3 deletions.
  1. +2 −0 test/wild.sh
  2. +7 −3 test/wild_report.py
View
@@ -155,6 +155,7 @@ all-manifests() {
-name shflags -o -name shlib -o -name shunit2 -o -name versions \
')' -a -printf '%P\n')
_sh-manifest ~/hg/wild/shell-script-library shell
_sh-manifest ~/git/other/modernish shell
_sh-manifest ~/git/other/posixcube shell
@@ -170,6 +171,7 @@ all-manifests() {
_sh-manifest ~/git/other/minimal distro
_sh-manifest ~/git/other/linuxkit distro
_sh-manifest ~/git/other/portage distro
_sh-manifest ~/git/wild/distro/woof-CE distro
src=~/git/alpine/aports
_manifest distro/alpine-aports $src \
View
@@ -542,9 +542,13 @@ def main(argv):
#print proj, '-', abs_path, '-', rel_path
def _ReadTaskFile(path):
with open(path) as f:
parts = f.read().split()
status, secs = parts
try:
with open(path) as f:
parts = f.read().split()
status, secs = parts
except ValueError as e:
log('ERROR reading %s: %s', path, e)
raise
# Turn it into pass/fail
num_failed = 1 if int(status) >= 1 else 0
return num_failed, float(secs)

0 comments on commit dbc4727

Please sign in to comment.