From 3aac3e56a5451125823f5d0a97101e6918eff660 Mon Sep 17 00:00:00 2001 From: jasl Date: Mon, 23 Oct 2023 03:12:30 +0800 Subject: [PATCH] wip --- jetson_containers/container.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jetson_containers/container.py b/jetson_containers/container.py index d37c1d59b..5c0b21e17 100644 --- a/jetson_containers/container.py +++ b/jetson_containers/container.py @@ -295,9 +295,11 @@ 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": @@ -305,7 +307,7 @@ def test_container(name, package, simulate=False): 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})")