Skip to content

Commit

Permalink
Fix host test use of grep (#3986)
Browse files Browse the repository at this point in the history
`acbgrep` isn't available here. Plus, the other tests in this file just
use `grep`.
  • Loading branch information
mikejholly authored Apr 4, 2024
1 parent 326a836 commit 83f08d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ast/tests/host.ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"cat",
"/etc/hosts",
"|",
"acbgrep",
"grep",
"\"1.2.3.4\\W*example.com\""
],
"name": "RUN"
Expand Down
2 changes: 1 addition & 1 deletion tests/host.earth
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ expand-args:
ARG fake_host=example.com
ARG target_ip=1.2
HOST $fake_host $target_ip.3.4
RUN cat /etc/hosts | acbgrep "1.2.3.4\W*example.com"
RUN cat /etc/hosts | grep "1.2.3.4\W*example.com"

invalid-ip:
HOST example.com 1.2.3.4.5.6.7.8.9.10
Expand Down

0 comments on commit 83f08d6

Please sign in to comment.