require zpm newpackage -f $PF $pkgid
tryrun -v zpm script -f $PF -s -p configure scriptrunner-1.0-1 /bin/false
-zpm script -f $PF -p configure -r scriptrunner-1.0-1 2>/dev/null
+zpm script -f $PF -p configure -r scriptrunner-1.0-1 2>&1
failsok failure script fails
zpm script -f $PF -p nosuchphase -r -F scriptrunner-1.0-1 2>/dev/null
note=
if [ $rv -eq 0 ]; then
printf 'not ';
- note=$(printf 'got "%d" expected "%d"' "$rv" "0")
+ note=$(printf 'got "%d" expected non-zero' "$rv")
fi
tn=$((tn + 1))
printf 'ok %d - %s\n' $tn "$*"