Skip to content

Commit

Permalink
fix missing coverage in gufi_stat
Browse files Browse the repository at this point in the history
  • Loading branch information
calccrypto committed Jan 11, 2024
1 parent 6ce8552 commit 67d0905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/regression/gufi_stat.expected
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ GUFI query is
prefix/.hidden
'prefix/.hidden' prefix/.hidden 664 -rw-rw-r-- ? ? 81b4 regular file 9 - 0 1970-01-01 00:00:09 +0000 9 1970-01-01 00:00:09 +0000 9

gufi_stat --terse "prefix/.hidden"
$ gufi_stat --terse "prefix/.hidden"
prefix/.hidden 9 0 81b4 1001 1001 ? 9 1 0 0 9 9 9 0 0

$ gufi_stat prefix/bad/directory
Expand Down
4 changes: 1 addition & 3 deletions test/regression/gufi_stat.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ run_no_sort "${GUFI_STAT} --format '%N %n %a %A %d %D %f %F %m %s %w %W %x %X %y

run_no_sort "${GUFI_STAT} --verbose --format '%N %n %a %A %d %D %f %F %m %s %w %W %x %X %y %Y\n' \"${BASENAME}/${fixed_size[0]}\""

echo "${GUFI_STAT} --terse \"${BASENAME}/${fixed_size[0]}\"" | replace
${GUFI_STAT} --terse "${BASENAME}/${fixed_size[0]}" | @AWK@ "{ \$3=0; \$5=${TEST_USER_ID}; \$6=${TEST_GROUP_ID}; \$16=0; print }"
echo
run_no_sort "${GUFI_STAT} --terse \"${BASENAME}/${fixed_size[0]}\"" | @AWK@ "FNR == 2 { \$3=0; \$5=${TEST_USER_ID}; \$6=${TEST_GROUP_ID}; \$16=0; } 1"

run_no_sort "${GUFI_STAT} ${BASENAME}/bad/directory"
run_no_sort "${GUFI_STAT} ${BASENAME}/badfile"
Expand Down

0 comments on commit 67d0905

Please sign in to comment.