Skip to content

Commit 1e6fc55

Browse files
Masterisk-Fpbrisbin
authored andcommitted
fix(test): update su mock to handle combined git+makepkg command
Match "*makepkg -fs*" before "git*" so the mock correctly returns MAKEPKG_FAIL for the combined "git checkout ... && makepkg -fs" command.
1 parent 4d95364 commit 1e6fc55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/build_pkg/main.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
> shift
77
> done
88
> case "$cmd" in
9+
> *"makepkg -fs"*) return "${MAKEPKG_FAIL:-0}" ;;
910
> git*) return 0 ;;
10-
> "makepkg -fs") return "${MAKEPKG_FAIL:-0}" ;;
1111
> "makepkg --packagelist") echo "/tmp/dummy-package-1.0-1-any.pkg.tar.zst" ;;
1212
> esac
1313
> }

0 commit comments

Comments
 (0)