Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Oct 22, 2023
1 parent 60fa4e2 commit 3aac3e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jetson_containers/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,19 @@ def test_container(name, package, simulate=False):
cmd += f"--volume {package['path']}:/test" + _NEWLINE_
cmd += f"--volume {os.path.join(_PACKAGE_ROOT, 'data')}:/data" + _NEWLINE_
cmd += f"--workdir /test" + _NEWLINE_
cmd += f"--entrypoint '/bin/bash -c'" + _NEWLINE_
cmd += f"--entrypoint ''" + _NEWLINE_
cmd += name + _NEWLINE_


cmd += "/bin/bash -c '"

if test_ext == ".py":
cmd += f"python3 {test}"
elif test_ext == ".sh":
cmd += f"/bin/bash {test}"
else:
cmd += f"{test}"

cmd += _NEWLINE_
cmd += "'" + _NEWLINE_
cmd += f"2>&1 | tee {log_file + '.txt'}" + "; exit ${PIPESTATUS[0]}"

print(f"-- Testing container {name} ({package['name']}/{test})")
Expand Down

0 comments on commit 3aac3e5

Please sign in to comment.