Whamcloud - gitweb
tests: fix problems in the m_rootgnutar test
authorTheodore Ts'o <tytso@mit.edu>
Tue, 23 Apr 2024 02:51:57 +0000 (22:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 23 Apr 2024 04:00:38 +0000 (00:00 -0400)
commitea562cbcd98d3bdd75e2435e14d82da9985c9a31
treeae1a6c129047cd8c00e1e00db2c657a9e7301d55
parentf639371af7d98fb1c41e81dc5dd938f97ef842b8
tests: fix problems in the m_rootgnutar test

The mkgnutar.pl file only works if the developer had a specific
username and uid.  In addition, if it is used, the round-trip from tar
to an ext4 file system and back to tar isn't properly tested.  So only
use mkgnutar.pl if the system doesn't have GNU TAR.

In addition, make sure all of the temp files created by the test are
deleted when the test is completed.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/m_rootgnutar/mkgnutar.pl
tests/m_rootgnutar/script