mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 16:20:08 +00:00
test: update check_appstore_updates test to verify skipping for performance.
This commit is contained in:
@@ -189,27 +189,18 @@ EOF
|
|||||||
[[ "$output" == *"2 formula"* ]]
|
[[ "$output" == *"2 formula"* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "check_appstore_updates reports count from softwareupdate" {
|
@test "check_appstore_updates is skipped for performance" {
|
||||||
run bash --noprofile --norc <<'EOF'
|
run bash --noprofile --norc <<'EOF'
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
source "$PROJECT_ROOT/lib/core/common.sh"
|
source "$PROJECT_ROOT/lib/core/common.sh"
|
||||||
source "$PROJECT_ROOT/lib/check/all.sh"
|
source "$PROJECT_ROOT/lib/check/all.sh"
|
||||||
|
|
||||||
softwareupdate() {
|
|
||||||
echo "* Label: AppOne"
|
|
||||||
echo "* Label: AppTwo"
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
start_inline_spinner(){ :; }
|
|
||||||
stop_inline_spinner(){ :; }
|
|
||||||
|
|
||||||
check_appstore_updates
|
check_appstore_updates
|
||||||
|
echo "COUNT=$APPSTORE_UPDATE_COUNT"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
[[ "$output" == *"App Store"* ]]
|
[[ "$output" == *"COUNT=0"* ]]
|
||||||
[[ "$output" == *"2 apps"* ]]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "check_macos_update warns when update available" {
|
@test "check_macos_update warns when update available" {
|
||||||
|
|||||||
Reference in New Issue
Block a user