From eee062fb035dc7abc78d73abb9c184ae7b82acc6 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 13 Jan 2021 02:01:23 +0100 Subject: [PATCH] Python3 yo dawg --- lib/manifest_parsing.py | 5 ++--- lib/tests_coordination.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/manifest_parsing.py b/lib/manifest_parsing.py index d6982fe..5c04eab 100644 --- a/lib/manifest_parsing.py +++ b/lib/manifest_parsing.py @@ -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))) diff --git a/lib/tests_coordination.sh b/lib/tests_coordination.sh index e71153d..4ab616c 100644 --- a/lib/tests_coordination.sh +++ b/lib/tests_coordination.sh @@ -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"