]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: another prompt fix
authorKarel Zak <kzak@redhat.com>
Mon, 25 Nov 2019 13:09:38 +0000 (14:09 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 25 Nov 2019 13:09:38 +0000 (14:09 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/script/replay

index edb725c3665082ea7e0ffab1cef8da7571a3202b..cf8a9f07b5fcd838878306c3ad6c37e84101de6d 100755 (executable)
@@ -91,7 +91,7 @@ NUMBER=123 $TS_CMD_SCRIPTLIVE \
        --command 'sh' \
        --log-in "$LOG_IN_FILE" \
        --log-timing "$TIMING_FILE" >> $TS_OUTPUT 2>> $TS_ERRLOG
-sed -i 's/sh-[[:alnum:]\.\$\#]*/prompt>/g' $TS_OUTPUT
+sed -i 's/^[[:alnum:][:punct:][:blank:]]*[\$\#] /prompt> /g' $TS_OUTPUT
 ts_finalize_subtest
 
 ts_finalize