Subject: | t/81_scanimage-perl.t fails because scanimage reports "Batch terminated" |
Some t/81_scanimage-perl.t tests fail for me like this:
# Failed test '--device=test --batch-count=2 2>&1; identify -format '%m %G %g %z-bit %r' out*.pnm; rm out*.pnm'
# at t/81_scanimage-perl.t line 41.
# got: 'Scanning 2 pages, incrementing by 1, numbering from 1
# Scanning page 1
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# Scanned page 2. (scanner status = 5)
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
# expected: 'Scanning 2 pages, incrementing by 1, numbering from 1
# Scanning page 1
# Scanned page 1. (scanner status = 5)
# Scanning page 2
# Scanned page 2. (scanner status = 5)
# Batch terminated, 2 pages scanned
# PGM 157x196 157x196+0+0 8-bit DirectClass Gray PGM 157x196 157x196+0+0 8-bit DirectClass Gray '
This is because my scanimage tool from sane-backends-1.0.27 appends "Batch terminated, 2 pages scanned" message when finishing a scan:
$ scanimage --version
scanimage (sane-backends) 1.0.27; backend version 1.0.27
$ scanimage --device=test --batch-count=2
Scanning 2 pages, incrementing by 1, numbering from 1
Scanning page 1
Scanned page 1. (scanner status = 5)
Scanning page 2
Scanned page 2. (scanner status = 5)
Batch terminated, 2 pages scanned