When check.sh was modified to run ngspice/sed without && in between, the change was not applied to the OpenBSD/SunOS branch. This leads to a test failure when ngspice returns nonzero, as in xpressn-1.cir, xpressn-2.cir, xpressn-3.cir, and bxpressn-1.cir.

Attached patch makes the code like the Linux code, and all tests now pass on OpenBSD.
This commit is contained in:
Anthony J. Bentley 2019-11-03 10:53:55 +01:00 committed by Holger Vogt
parent c8082072fb
commit f40f5a5ae4
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ case $HOST_TYPE in
rm -f $testname.test_tmp $testname.out_tmp
;;
FreeBSD*|SunOS*|OpenBSD*)
$SPICE --batch $testdir/$testname.cir >$testname.test &&\
sed -e '/^$/d' $testname.test | egrep -v "$FILTER" > $testname.test_tmp &&\
$SPICE --batch $testdir/$testname.cir >$testname.test
sed -e '/^$/d' $testname.test | egrep -v "$FILTER" > $testname.test_tmp
sed -e '/^$/d' $testdir/$testname.out | egrep -v "$FILTER" > $testname.out_tmp
if diff -b -w $testname.out_tmp $testname.test_tmp; then
rm $testname.test $testname.test_tmp $testname.out_tmp