-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
chore(e2e): Add Makefile to make running specific e2e test apps easier #18953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| .PHONY: run list | ||
|
|
||
| run: | ||
| @if ! command -v fzf &> /dev/null; then \ | ||
| echo "Error: fzf is required. Install with: brew install fzf"; \ | ||
| exit 1; \ | ||
| fi | ||
| @ls test-applications | fzf --height=10 --layout=reverse --border=rounded --margin=1.5% --color=dark --prompt="yarn test:run " | xargs -r yarn test:run | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixRemove the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, it runs on mac. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. xargs -r flag incompatible with macOSHigh Severity The |
||
|
|
||
| list: | ||
| @ls test-applications | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bash-specific redirection syntax breaks on POSIX shells
High Severity
The
&>redirection syntax is bash-specific and not POSIX-compliant. Since the Makefile doesn't specifySHELL := /bin/bash, it defaults to/bin/shwhich isdashon many Linux systems including Ubuntu. This causes a syntax error preventing thefzfcheck from working on non-bash systems. The POSIX-compliant alternative is>/dev/null 2>&1.