aboutsummaryrefslogtreecommitdiff
path: root/tests/chattr.test
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-02-01 17:17:28 -0800
committerRob Landley <rob@landley.net>2020-02-01 22:37:36 -0600
commit49912d6f47311d087ce007129a945e48199bfbac (patch)
treef4539c3e31240e6788de52af2c93aacc8410dda5 /tests/chattr.test
parentae626295bad3e20a9c457f5f616cd92299f5258c (diff)
downloadtoybox-49912d6f47311d087ce007129a945e48199bfbac.tar.gz
chattr.test/lsattr.test: fix on more kernels/fses.
The tests now pass on all the systems available to me (cloud Android with encrypted f2fs, current AOSP with regular f2fs, and current Debian testing with ext4).
Diffstat (limited to 'tests/chattr.test')
-rwxr-xr-xtests/chattr.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/chattr.test b/tests/chattr.test
index e3d8d547..2e580cfb 100755
--- a/tests/chattr.test
+++ b/tests/chattr.test
@@ -13,12 +13,12 @@ fi
function clean()
{
# We don't know whether the fs will have extents (e, typically true on the
- # desktop) or be encrypted (E, typically true on Android), so strip out both
- # the long and short forms of those.
+ # desktop) or be encrypted (E, typically true on Android), or have data
+ # inlined in the inode (N), or use indexed directories, so strip those out.
# We also don't want to rely on chattr(1) to set a known version number or
# project number, so blank out any numbers.
- sed 's/, Encrypted//; s/-E-/---/; s/, Extents//; s/-e-/---/' | \
- sed -E 's/[0-9]+/_/g'
+ sed -E 's/, (Encrypted|Extents|Indexed_directory|Inline_Data)//g;' |
+ sed -E 's/[EeIN]-/--/g; s/[0-9]+/_/g'
}
mkdir testattr