mirror of
https://github.com/tw93/Mole.git
synced 2026-02-10 09:04:21 +00:00
System optimization and massive updates
This commit is contained in:
@@ -97,3 +97,20 @@ setup() {
|
||||
fi
|
||||
[ "$status" -ne 0 ]
|
||||
}
|
||||
|
||||
@test "mo clean --whitelist persists selections" {
|
||||
whitelist_file="$HOME/.config/mole/whitelist"
|
||||
mkdir -p "$(dirname "$whitelist_file")"
|
||||
|
||||
run bash --noprofile --norc -c "cd '$PROJECT_ROOT'; printf \$'\\n' | HOME='$HOME' ./mo clean --whitelist"
|
||||
[ "$status" -eq 0 ]
|
||||
grep -q "\\.m2/repository" "$whitelist_file"
|
||||
|
||||
run bash --noprofile --norc -c "cd '$PROJECT_ROOT'; printf \$' \\n' | HOME='$HOME' ./mo clean --whitelist"
|
||||
[ "$status" -eq 0 ]
|
||||
! grep -q "\\.m2/repository" "$whitelist_file"
|
||||
|
||||
run bash --noprofile --norc -c "cd '$PROJECT_ROOT'; printf \$'\\n' | HOME='$HOME' ./mo clean --whitelist"
|
||||
[ "$status" -eq 0 ]
|
||||
! grep -q "\\.m2/repository" "$whitelist_file"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user