From: Stefan Sperling Subject: Re: teach got patch how to strip To: Omar Polo Cc: gameoftrees@openbsd.org Date: Tue, 5 Apr 2022 20:10:16 +0200 On Tue, Apr 05, 2022 at 05:59:55PM +0200, Omar Polo wrote: > + (cd $testroot/wt && got patch -p3 patch) \ > + > $testroot/stdout 2> $testroot/stderr > + ret=$? > + if [ $ret -eq 0 ]; then > + echo "stripped more components than available!" > + test_done $testroot 1 > + return 1 > + fi This should check stderr against the error message we expect to see. But that can be fixed later. ok stsp@