mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Python3 yo dawg
This commit is contained in:
parent
157f764079
commit
eee062fb03
2 changed files with 3 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
||||||
# Merci a Bram pour ce code python.
|
#!/usr/bin/python3
|
||||||
# https://github.com/YunoHost/ci
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
|
@ -54,4 +53,4 @@ if __name__ == '__main__':
|
||||||
manifest = json.load(open(manifest_path, "r"))
|
manifest = json.load(open(manifest_path, "r"))
|
||||||
|
|
||||||
for question in manifest["arguments"]["install"]:
|
for question in manifest["arguments"]["install"]:
|
||||||
print ":".join(argument_for_question(question, all_choices=True))
|
print(":".join(argument_for_question(question, all_choices=True)))
|
||||||
|
|
|
@ -214,7 +214,7 @@ guess_test_configuration() {
|
||||||
> "$TEST_CONTEXT/tests/$test_id.json"
|
> "$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 "PACKAGE_LINTER"
|
||||||
add_test "TEST_INSTALL" "root"
|
add_test "TEST_INSTALL" "root"
|
||||||
|
|
Loading…
Add table
Reference in a new issue