We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d772210 commit 93ce791Copy full SHA for 93ce791
.scripts/package_manager_is_valid.sh
@@ -14,5 +14,24 @@ package_manager_is_valid() {
14
}
15
16
test_package_manager_is_valid() {
17
- warn "CI does not test package_manager_is_valid."
+ local ForcePass='' # Force the tests to pass even on failure if set to a non-empty value
18
+ local -i result=0
19
+ local -a Test=(
20
+ apt YES
21
+ Apt YES
22
+ nala YES
23
+ Nala YES
24
+ brew YES
25
+ xxx NO
26
+ )
27
+ run_unit_tests_pipe "App" "App" "${ForcePass}" < <(
28
+ for ((i = 0; i < ${#Test[@]}; i += 2)); do
29
+ printf '%s\n' \
30
+ "${Test[i]}" \
31
+ "${Test[i + 1]}" \
32
+ "$(run_script 'package_manager_is_valid' "${Test[i]}" && echo "YES" || echo "NO")"
33
+ done
34
35
+ result=$?
36
+ return ${result}
37
0 commit comments