]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (colcrt) use env to set locale
authorKarel Zak <kzak@redhat.com>
Fri, 30 Aug 2019 18:45:29 +0000 (20:45 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Aug 2019 18:46:58 +0000 (20:46 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/colcrt/regressions

index 15117609a447ed88f1dc7799e0d2f0ef0b93ce84..130ad9a5a4fd39695b00ab6bad8cb678cedafa80 100755 (executable)
@@ -21,10 +21,11 @@ ts_init "$*"
 
 ts_check_test_command "$TS_CMD_COLCRT"
 ts_check_prog "timeout"
+ts_check_prog "env"
 
 check_input_file() {
        ts_init_subtest ${1##*/}
-       LC_ALL=C.UTF-8 timeout 2 $TS_CMD_COLCRT < $1 >> $TS_OUTPUT 2>> $TS_ERRLOG
+       timeout 2 env LC_ALL=C.UTF-8 $TS_CMD_COLCRT < $1 >> $TS_OUTPUT 2>> $TS_ERRLOG
        echo "return value: $?" >> $TS_OUTPUT
        ts_finalize_subtest
 }