tests/dev-ptmx: we expect the grep calls to fail -- make sure they don't fail because /tmp/log doesn't exist

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-08-28 08:15:08 +02:00
parent c95632f963
commit f1d847e4ae
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -132,6 +132,7 @@ script -qfc "$prefix {{ CMD }} --mode={{ MODE }} --variant=apt \
{{ DIST }} /dev/null {{ MIRROR }}" /dev/null
fail=0
[ -r /tmp/log ] || fail=1
grep '^E:' /tmp/log && fail=1
grep 'Can not write log' /tmp/log && fail=1
grep 'posix_openpt' /tmp/log && fail=1