1
1
mirror of https://github.com/tstack/lnav.git synced 2024-08-17 00:40:30 +03:00

[tests] fix for busybox

This commit is contained in:
Timothy Stack 2021-06-07 08:59:24 -07:00
parent 3cc22dc88c
commit 408a2ea38e
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ run_test() {
# EOF
#
check_output() {
sed -i "" \
sed -ibak \
-e "s;${test_dir};{test_dir};g" \
-e "s;${top_srcdir};{top_srcdir};g" \
${test_file_base}_${test_num}.tmp
@ -123,7 +123,7 @@ test_err_filename() {
}
check_error_output() {
sed -i "" \
sed -ibak \
-e "s;${test_dir};{test_dir};g" \
-e "s;${top_srcdir};{top_srcdir};g" \
${test_file_base}_${test_num}.err

View File

@ -501,7 +501,7 @@ EOF
run_test ${lnav_test} -C ${test_dir}/logfile_bad_access_log.0
sed -i "" -e "s|/.*/logfile_bad_access_log.0|logfile_bad_access_log.0|g" `test_err_filename`
sed -ibak -e "s|/.*/logfile_bad_access_log.0|logfile_bad_access_log.0|g" `test_err_filename`
check_error_output "bad access_log line not found?" <<EOF
error:logfile_bad_access_log.0:1:line did not match format access_log/regex/std