[tests] scrub out $UID in test output

pull/1179/head
Tim Stack 10 months ago
parent fa024a7256
commit a05dd4bd2f

@ -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"

@ -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

Loading…
Cancel
Save