trying to fix the preupgrade script when we guess the test configuration

This commit is contained in:
Kayou 2021-10-21 12:28:01 +02:00 committed by GitHub
parent 06745d3865
commit 1a766eaa64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,15 +208,17 @@ guess_test_configuration() {
local test_arg="$2"
test_id="$((test_id+1))"
local extra="{}"
local preupgrade_template=""
jq -n \
--arg test_serie "default" \
--arg test_type "$test_type" \
--arg test_arg "$test_arg" \
--arg preinstall_template "" \
--arg preupgrade_template "$preupgrade_template" \
--arg install_args "$install_args" \
--argjson extra "$extra" \
'{ $test_serie, $test_type, $test_arg, $preinstall_template, $install_args, $extra }' \
'{ $test_serie, $test_type, $test_arg, $preinstall_template, $preupgrade_template, $install_args, $extra }' \
> "$TEST_CONTEXT/tests/$test_id.json"
}