Skip to content

Commit a02ffbc

Browse files
test: dont use alias of grep
Signed-off-by: thiswillbeyourgithub <[email protected]>
1 parent 66bf47c commit a02ffbc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/test_cli.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ test_help_output_shell() {
4949
fi
5050

5151
# Check that dynamic docstring placeholder is not present
52-
if echo "$output" | grep -q "This docstring is dynamically updated with the content of wdoc/docs/help.md"; then
52+
if echo "$output" | \grep -q "This docstring is dynamically updated with the content of wdoc/docs/help.md"; then
5353
echo "FAIL: Found dynamic docstring placeholder in help output"
5454
return 1
5555
fi
5656

5757
# Check that actual content is present
58-
if ! echo "$output" | grep -q "Content of wdoc/docs/help.md"; then
58+
if ! echo "$output" | \grep -q "Content of wdoc/docs/help.md"; then
5959
echo "FAIL: Did not find expected content in help output"
6060
return 1
6161
fi
@@ -71,13 +71,13 @@ test_help_output_python() {
7171
fi
7272

7373
# Check that dynamic docstring placeholder is not present
74-
if echo "$output" | grep -q "This docstring is dynamically updated with the content of wdoc/docs/help.md"; then
74+
if echo "$output" | \grep -q "This docstring is dynamically updated with the content of wdoc/docs/help.md"; then
7575
echo "FAIL: Found dynamic docstring placeholder in help output"
7676
return 1
7777
fi
7878

7979
# Check that actual content is present
80-
if ! echo "$output" | grep -q "Content of wdoc/docs/help.md"; then
80+
if ! echo "$output" | \grep -q "Content of wdoc/docs/help.md"; then
8181
echo "FAIL: Did not find expected content in help output"
8282
return 1
8383
fi
@@ -93,13 +93,13 @@ test_parse_doc_help_output_shell() {
9393
fi
9494

9595
# Check that dynamic docstring placeholder is not present
96-
if echo "$output" | grep -q "This docstring is dynamically updated with the content of wdoc/docs/parse_doc_help.md"; then
96+
if echo "$output" | \grep -q "This docstring is dynamically updated with the content of wdoc/docs/parse_doc_help.md"; then
9797
echo "FAIL: Found dynamic docstring placeholder in parse help output"
9898
return 1
9999
fi
100100

101101
# Check that actual content is present
102-
if ! echo "$output" | grep -q "Content of wdoc/docs/parse_doc_help.md"; then
102+
if ! echo "$output" | \grep -q "Content of wdoc/docs/parse_doc_help.md"; then
103103
echo "FAIL: Did not find expected content in parse help output"
104104
return 1
105105
fi
@@ -115,13 +115,13 @@ test_parse_doc_help_output_python() {
115115
fi
116116

117117
# Check that dynamic docstring placeholder is not present
118-
if echo "$output" | grep -q "This docstring is dynamically updated with the content of wdoc/docs/parse_doc_help.md"; then
118+
if echo "$output" | \grep -q "This docstring is dynamically updated with the content of wdoc/docs/parse_doc_help.md"; then
119119
echo "FAIL: Found dynamic docstring placeholder in parse help output"
120120
return 1
121121
fi
122122

123123
# Check that actual content is present
124-
if ! echo "$output" | grep -q "Content of wdoc/docs/parse_doc_help.md"; then
124+
if ! echo "$output" | \grep -q "Content of wdoc/docs/parse_doc_help.md"; then
125125
echo "FAIL: Did not find expected content in parse help output"
126126
return 1
127127
fi
@@ -199,7 +199,7 @@ test_get_piped_input_detection() {
199199
return 1
200200
fi
201201

202-
if ! echo "$result_text" | grep -q "This is test text"; then
202+
if ! echo "$result_text" | \grep -q "This is test text"; then
203203
echo "FAIL: Text piping did not work correctly"
204204
echo "Expected to find input text in output, got: $result_text"
205205
return 1
@@ -214,7 +214,7 @@ test_get_piped_input_detection() {
214214
return 1
215215
fi
216216

217-
if ! echo "$result_bytes" | grep -q "binary data"; then
217+
if ! echo "$result_bytes" | \grep -q "binary data"; then
218218
echo "FAIL: Binary piping did not work correctly"
219219
echo "Expected to find binary data in output, got: $result_bytes"
220220
return 1
@@ -266,7 +266,7 @@ test_ddg_search_nvidia() {
266266
fi
267267

268268
# Should contain the testing model's standard response
269-
if ! echo "$output" | grep -q "Lorem ipsum dolor sit amet"; then
269+
if ! echo "$output" | \grep -q "Lorem ipsum dolor sit amet"; then
270270
echo "Output was: '''\n$output\n'''\n===End of captured output==="
271271
echo "FAIL: Output did not contain expected testing string"
272272
return 1

0 commit comments

Comments
 (0)