mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Parse tests.toml if it exists
This commit is contained in:
parent
fe2e0048ad
commit
1c0cda8d08
1 changed files with 11 additions and 5 deletions
|
@ -228,12 +228,18 @@ run_all_tests() {
|
||||||
readonly app_id="$(grep '^id = ' $package_path/manifest.toml | tr -d '" ' | awk -F= '{print $2}')"
|
readonly app_id="$(grep '^id = ' $package_path/manifest.toml | tr -d '" ' | awk -F= '{print $2}')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
tests_toml="$package_path/tests.toml"
|
||||||
|
if [ -e "$tests_toml"]
|
||||||
|
then
|
||||||
|
python3 "./lib/parse_tests_toml.py" "$package_path" "$TEST_CONTEXT"
|
||||||
|
else
|
||||||
# Parse the check_process only if it's exist
|
# Parse the check_process only if it's exist
|
||||||
check_process="$package_path/check_process"
|
check_process="$package_path/check_process"
|
||||||
|
|
||||||
[ -e "$check_process" ] \
|
[ -e "$check_process" ] \
|
||||||
&& parse_check_process \
|
&& parse_check_process \
|
||||||
|| guess_test_configuration
|
|| guess_test_configuration
|
||||||
|
fi
|
||||||
|
|
||||||
# Start the timer for this test
|
# Start the timer for this test
|
||||||
start_timer
|
start_timer
|
||||||
|
|
Loading…
Add table
Reference in a new issue