From: LOLi Date: Fri, 7 Jul 2017 22:45:29 +0000 (+0200) Subject: Fix chattr_001_pos X-Git-Tag: zfs-0.7.0-rc5~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dda82a2eabefcf3e044c5d3bbe78954dfc0e4248;p=zfs Fix chattr_001_pos Commands should be eval()ed if they involve a shell redirection, otherwise we end up writing log_* functions messages to the output. Reviewed-by: Brian Behlendorf Reviewed-by: Giuseppe Di Natale Reviewed-by: George Melikov Signed-off-by: loli10K Closes #6300 Closes #6323 --- diff --git a/tests/zfs-tests/tests/functional/chattr/chattr_001_pos.ksh b/tests/zfs-tests/tests/functional/chattr/chattr_001_pos.ksh index 73e4e2e5a..4d66146d7 100755 --- a/tests/zfs-tests/tests/functional/chattr/chattr_001_pos.ksh +++ b/tests/zfs-tests/tests/functional/chattr/chattr_001_pos.ksh @@ -65,11 +65,11 @@ log_must chattr -i $TESTDIR/writable log_must chattr +i $TESTDIR/immutable log_must chattr +a $TESTDIR/append -log_must echo test > $TESTDIR/writable -log_must echo test >> $TESTDIR/writable -log_mustnot echo test > $TESTDIR/immutable -log_mustnot echo test >> $TESTDIR/immutable -log_mustnot echo test > $TESTDIR/append -log_must echo test >> $TESTDIR/append +log_must eval "echo test > $TESTDIR/writable" +log_must eval "echo test >> $TESTDIR/writable" +log_mustnot eval "echo test > $TESTDIR/immutable" +log_mustnot eval "echo test >> $TESTDIR/immutable" +log_mustnot eval "echo test > $TESTDIR/append" +log_must eval "echo test >> $TESTDIR/append" log_pass "chattr works as expected"