Skip to content

Commit

Permalink
printouts to c demo test
Browse files Browse the repository at this point in the history
  • Loading branch information
bejager committed May 3, 2024
1 parent 5917c54 commit d975bdc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/c/test/test_orca_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ def run_orca(self, model_path: str) -> None:
process = subprocess.Popen(args, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
stdout, stderr = process.communicate()

print("Command:", args) # Print the command being run
print("stdout:", stdout.decode()) # Print the stdout output
print("stderr:", stderr.decode()) # Print the stderr output
print("Exit code:", process.poll()) # Print the exit code

self.assertEqual(process.poll(), 0)
self.assertEqual(stderr.decode('utf-8'), '')
self.assertTrue("Saved audio" in stdout.decode('utf-8'))
Expand Down

0 comments on commit d975bdc

Please sign in to comment.