Python3 yo dawg

This commit is contained in:
Alexandre Aubin 2021-01-13 02:01:23 +01:00
parent 157f764079
commit eee062fb03
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,4 @@
# Merci a Bram pour ce code python.
# https://github.com/YunoHost/ci
#!/usr/bin/python3
import sys
import json
@ -54,4 +53,4 @@ if __name__ == '__main__':
manifest = json.load(open(manifest_path, "r"))
for question in manifest["arguments"]["install"]:
print ":".join(argument_for_question(question, all_choices=True))
print(":".join(argument_for_question(question, all_choices=True)))

View file

@ -214,7 +214,7 @@ guess_test_configuration() {
> "$TEST_CONTEXT/tests/$test_id.json"
}
local install_args=$(python "./lib/manifest_parsing.py" "$package_path/manifest.json" | cut -d ':' -f1,2 | tr ':' '=' | tr '\n' '&')
local install_args=$(python3 "./lib/manifest_parsing.py" "$package_path/manifest.json" | cut -d ':' -f1,2 | tr ':' '=' | tr '\n' '&')
add_test "PACKAGE_LINTER"
add_test "TEST_INSTALL" "root"