[Toybox] [PATCH] chattr.test: fix tests.

Rob Landley rob at landley.net
Fri Jan 31 19:13:34 PST 2020


On 1/31/20 6:17 PM, enh via Toybox wrote:
> Cope with all the extra flags added recently, and ignore random stuff
> from the environment like extents and encryption.
> 
> Tested on a cloud Android emulator with f2fs.

I want to do a similar "collate sed calls" patch and remove trailing whitespace
from the file, but...

FAIL: chattr [-/+]i FILE[write]
echo -ne '' | cd testattr && touch testFile &&
         chattr +i testFile && lsattr testFile | clean &&
         date > testFile 2>/dev/null; chattr -i testFile;
         rm -rf testFile; cd ..
--- expected	2020-01-31 21:11:10.815922683 -0600
+++ actual	2020-01-31 21:11:10.819922683 -0600
@@ -1 +1 @@
-----i--------------- testFile
+----i-------------- testFile

It doesn't run for me before I did that? (off by one minus? Is it an ext4 thing?)

Rob



More information about the Toybox mailing list