]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: make scriptlive output more portable
authorKarel Zak <kzak@redhat.com>
Fri, 22 Nov 2019 13:21:20 +0000 (14:21 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 22 Nov 2019 13:21:20 +0000 (14:21 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/script/replay-live
tests/ts/script/replay

index 1ea64cf8e60ec18ed0e8ff29a6008dcdc0032c7a..cc68a18048bbc94fe9f83180a08efca392fe8be7 100644 (file)
@@ -1,7 +1,7 @@
 >>> scriptlive: Starting your typescript execution by sh --posix.
 echo "result is $(($NUMBER + 1))"\r
-$ echo "result is $(($NUMBER + 1))"\r
+prompt> echo "result is $(($NUMBER + 1))"\r
 result is 124\r
-$ exit\r
+prompt> exit\r
 
 >>> scriptlive: done.
index fc8e80d849f371852f1dda54669858dbcde3e665..7c6bd201fc61a4e1194e2ed4465ba7cef960683a 100755 (executable)
@@ -91,7 +91,7 @@ NUMBER=123 $TS_CMD_SCRIPTLIVE \
        --command 'sh --posix' \
        --log-in "$LOG_IN_FILE" \
        --log-timing "$TIMING_FILE" >> $TS_OUTPUT 2>> $TS_ERRLOG
-sed -i 's/sh-[[:alnum:]\.]*//g' $TS_OUTPUT
+sed -i 's/sh-[[:alnum:]\.\$\#]*/prompt>/g' $TS_OUTPUT
 ts_finalize_subtest
 
 ts_finalize