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

[tests] scrub out $UID in test output

This commit is contained in:
Tim Stack 2023-07-19 05:41:13 -07:00
parent fa024a7256
commit a05dd4bd2f
2 changed files with 3 additions and 1 deletions

View File

@ -106,6 +106,7 @@ run_cap_test() {
-e "s;${builddir};{test_dir};g" \
-e "s;${top_srcdir};{top_srcdir};g" \
-e "s;${top_srcdir_parent};{top_srcdir_parent};g" \
-e "s;lnav-user-${UID}-work;lnav-user-{uid}-work;g" \
${test_file_base}_${test_hash}.out
echo
printf "%s \033[0;35m=============================================================\033[0m\n" $(date -Iseconds)
@ -133,6 +134,7 @@ run_cap_test() {
-e "s;${test_dir};{test_dir};g" \
-e "s;${builddir};{builddir};g" \
-e "s;${top_srcdir};{top_srcdir};g" \
-e "s;lnav-user-${UID}-work;lnav-user-{uid}-work;g" \
-e 's;"errorId":".+";;g' \
${test_file_base}_${test_hash}.err
printf '\033[0;31mBEGIN\033[0m %s\n' "${test_file_base}_${test_hash}.err"

View File

@ -1,4 +1,4 @@
ⓘ info: the following piper captures were found in:
piper-tmp/lnav-user-501-work/piper
piper-tmp/lnav-user-{uid}-work/piper
 = note: The captures currently consume 31B of disk space. File sizes include associated metadata.
 = help: You can reopen a capture by passing the piper URL to lnav