diff options
author | Didier Raboud <odyx@debian.org> | 2016-08-09 18:11:22 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2018-11-16 20:10:34 +0100 |
commit | f584af3e5a1cd1e33dedbd09f329404ac2dd9330 (patch) | |
tree | 28d2525a93313e27fa7de0a9a43e0fc5192a8bd5 | |
parent | c14219cb451bb7bfec20b353f2210b43ef544a7b (diff) |
Force LC_ALL=C environment variable when grepping the output of lpstat.
Permits testing in non-"C" environments.
Origin: vendor
Last-Update: 2016-07-11
Patch-Name: tests-make-lpstat-call-reproducible.patch
-rwxr-xr-x | test/run-stp-tests.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/run-stp-tests.sh b/test/run-stp-tests.sh index dae0d50dd..36d8d2435 100755 --- a/test/run-stp-tests.sh +++ b/test/run-stp-tests.sh @@ -695,7 +695,7 @@ else fi while true; do - running=`$runcups ../systemv/lpstat -r 2>/dev/null` + running=`LC_ALL=C $runcups ../systemv/lpstat -r 2>/dev/null` if test "x$running" = "xscheduler is running"; then break fi @@ -809,13 +809,13 @@ kill -HUP $cupsd while true; do sleep 10 - running=`$runcups ../systemv/lpstat -r 2>/dev/null` + running=`LC_ALL=C $runcups ../systemv/lpstat -r 2>/dev/null` if test "x$running" = "xscheduler is running"; then break fi done -description="`$runcups ../systemv/lpstat -l -p Test1 | grep Description | sed -e '1,$s/^[^:]*: //g'`" +description="`LC_ALL=C $runcups ../systemv/lpstat -l -p Test1 | grep Description | sed -e '1,$s/^[^:]*: //g'`" if test "x$description" != "xTest Printer 1"; then echo "Failed, printer-info for Test1 is '$description', expected 'Test Printer 1'." >>$strfile echo "FAIL (got '$description', expected 'Test Printer 1')" |