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 93ce791 commit 327ea9fCopy full SHA for 327ea9f
.scripts/package_manager_exists.sh
@@ -13,5 +13,24 @@ package_manager_exists() {
13
}
14
15
test_package_manager_exists() {
16
- warn "CI does not test package_manager_exists."
+ local ForcePass='' # Force the tests to pass even on failure if set to a non-empty value
17
+ local -i result=0
18
+ local -a Test=(
19
+ apt YES
20
+ Apt YES
21
+ nala NO
22
+ Nala NO
23
+ brew NO
24
+ xxx NO
25
+ )
26
+ run_unit_tests_pipe "App" "App" "${ForcePass}" < <(
27
+ for ((i = 0; i < ${#Test[@]}; i += 2)); do
28
+ printf '%s\n' \
29
+ "${Test[i]}" \
30
+ "${Test[i + 1]}" \
31
+ "$(run_script 'package_manager_is_installed' "${Test[i]}" && echo "YES" || echo "NO")"
32
+ done
33
34
+ result=$?
35
+ return ${result}
36
0 commit comments