github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/mock_error.sh (about) 1 2 echo "executing workflow ......." 3 4 echo "step 1 ......." 5 6 echo "step m ......." 7 8 >&2 echo "encountering an error ......" 9 >&2 echo "error 1 ......" 10 >&2 echo "error 2 ......" 11 exit -1 12 13 echo "step n ......." 14 15 echo "end workflow!" 16 17 #./tests/functests/mock_error.sh > /tmp/ok 2>/tmp/err