Skip to content

Commit

Permalink
Another attempt to get output
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Apr 25, 2023
1 parent cff2af9 commit 603d148
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci-interpreter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,5 @@ jobs:
node-version: 19.x
- name: Build interpreter
run: cd interpreter && opam exec make
- name: Run annotate test
run: cd interpreter && (opam exec make test/annotations || node _output/annotations.js)
- name: Run tests
run: cd interpreter && opam exec make JS=node ci
6 changes: 5 additions & 1 deletion test/core/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ class RunTests(unittest.TestCase):
def _runCommand(self, command, logPath, expectedExitCode = 0):
with open(logPath, 'w+') as out:
exitCode = subprocess.call(command, shell=True, stdout=out, stderr=subprocess.STDOUT)
self.assertEqual(expectedExitCode, exitCode, "failed with exit code %i (expected %i) for %s" % (exitCode, expectedExitCode, command))
if exitCode != expectedExitCode:
print("=== log ===")
subprocess.call("cat %s" % logPath, shell=True)
print("===========")
self.assertEqual(expectedExitCode, exitCode, "failed with exit code %i (expected %i) for %s" % (exitCode, expectedExitCode, command))

def _auxFile(self, path):
if os.path.exists(path):
Expand Down

0 comments on commit 603d148

Please sign in to comment.