Skip to content

Commit e1b2a87

Browse files
test: finally fixed the ddg error not capturing the output
Signed-off-by: thiswillbeyourgithub <[email protected]>
1 parent a02ffbc commit e1b2a87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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" | sed 's/\x1b\[[0-9;]*m//g' | tail -n 20 | GREP_COLORS='' \grep --color=never -i -q "ipsum dolor"; 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)