1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-10-04 04:31:00 +00:00
go-mtree/test/cli
Aleksa Sarai 0beb885cbf
compare: properly compare tar_time and time
In certain circumstances, if a manifest with "time" keywords was
compared to another manifest with "tar_time" keywords, differences were
not actually reported despite there being logic for it.

Unfortunately, even though commit 26ff922da6 ("compare: implement
mtree.DirectoryHierarchy comparisons") explicitly included logic to
handle the necessary "time" -> "tar_time" conversions, the same commit
also made it so that Compare() could be instructed to only consider a
subset of keywords and failed to take into account said "time" ->
"tar_time" remapping.

Most users have likely not noticed this because gomtree will re-use the
keywords from a manifest when doing a straightforward "gomtree validate"
invocation, but if you explicitly requested "time" when validating a
"tar_time" manifest (and *not* the other way around) then any time
changes would be undetected.

Fixes: 26ff922da6 ("compare: implement mtree.DirectoryHierarchy comparisons")
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2025-09-09 22:47:49 +10:00
..
0001.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0001a.sh *: begin incorporating the "validate" subcommand 2023-10-24 10:25:18 -04:00
0002.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0003.sh tests: cli: properly check for exit status codes in error cases 2025-09-08 23:53:21 +10:00
0004.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0005.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0006.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0007.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0008.sh *: rework the test tools, so no dep is ignored 2022-04-03 23:15:40 -04:00
0009.sh tests: cli: properly check for exit status codes in error cases 2025-09-08 23:53:21 +10:00
0010.sh tests: cli: properly check for exit status codes in error cases 2025-09-08 23:53:21 +10:00
0011.sh tests: cli: properly check for exit status codes in error cases 2025-09-08 23:53:21 +10:00
0012.sh compare: properly compare tar_time and time 2025-09-09 22:47:49 +10:00