Commit 523dd14d authored by Vojtěch Horký's avatar Vojtěch Horký
Browse files

11: fix execution on Gitlab

parent 33f5e8bf
......@@ -4,11 +4,10 @@
load "../../nswi177"
make_venv_activate_and_install() {
cd 11/tapsum2json
local venv_path="$1"
local venv_path="${NSWI177_TEMP:?}/venv-$1/"
cd 11/tapsum2json
python3 -m venv "$venv_path"
. "$venv_path/bin/activate"
......@@ -30,9 +29,11 @@ run_it() {
local expected_output="$2"
shift 2
make_venv_activate_and_install "$venv_name"
local venv_path="${NSWI177_TEMP:?}/venv-${venv_name}/"
make_venv_activate_and_install "$venv_path"
launch timeout 2m tapsum2json "$@"
# Running manually as /dev/shm is often mounted with noexec
launch timeout 2m python "$venv_path/bin/tapsum2json" "$@"
output="$( echo "$output" | python -mjson.tool --sort-keys --indent 4 2>&1 || ( echo "JSON output seems invalid..."; echo "---"; echo "$output"; echo "$erroroutput" ) )"
expected_output="$( echo "$expected_output" | sed "s:%TEST_ROOT%:${NSWI177_TEST_ROOT}:g" )"
......@@ -43,6 +44,7 @@ run_it() {
}
@test "11/tapsum2json/setup.cfg - Submitted (0)" {
fail_if_missing
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment