summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-06 14:56:44 +0000
committerGitHub <noreply@github.com>2021-08-06 14:56:44 +0000
commit04ab2b16617fe2d3178eb0b461aacbcab609611e (patch)
tree265152f98e32add21cf2f44f0e152f0037c322ad /Makefile
parent9853b147199b270271f2fa68fdef68bc4027ed33 (diff)
parentc9e2f2f60b2e3293fe04a06742d411d319d0b93d (diff)
downloadpodman-04ab2b16617fe2d3178eb0b461aacbcab609611e.tar.gz
podman-04ab2b16617fe2d3178eb0b461aacbcab609611e.tar.bz2
podman-04ab2b16617fe2d3178eb0b461aacbcab609611e.zip
Merge pull request #11137 from edsantiago/helpfulerer
[CI:DOCS] tests-expect-exit: include source line numbers
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 32d2f44b7..fbd15bac7 100644
--- a/Makefile
+++ b/Makefile
@@ -607,7 +607,7 @@ tests-included:
.PHONY: tests-expect-exit
tests-expect-exit:
- @if egrep 'Expect.*ExitCode' test/e2e/*.go | egrep -v ', ".*"\)'; then \
+ @if egrep --line-number 'Expect.*ExitCode' test/e2e/*.go | egrep -v ', ".*"\)'; then \
echo "^^^ Unhelpful use of Expect(ExitCode())"; \
echo " Please use '.Should(Exit(...))' pattern instead."; \
echo " If that's not possible, please add an annotation (description) to your assertion:"; \