Commit c51ebcb7 authored by Natanael Copa's avatar Natanael Copa
Browse files

tests: do not run atf_check in a subshell

We can not pipe to atf_shell as it will make it run in a subshell and
will not handle failures properly.

Fixes commit ab67ab07 (setup-proxy: fix empty proxy)
parent 1eca06e1
Pipeline #126431 passed with stage
in 23 seconds
......@@ -42,10 +42,11 @@ setup_proxy_interactive_none_body() {
mkdir -p etc/profile.d
touch etc/profile.d/
echo none | atf_check -s exit:0 \
echo none > answers
atf_check -s exit:0 \
-o match:"HTTP/FTP proxy URL" \
-e empty \
setup-proxy < answers
if test -e etc/profile.d/; then
atf_fail "etc/profile.d/ was not removed"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment