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 <behlendorf1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Closes #6300 Closes #6323
This commit is contained in:
parent
2ade4a99f0
commit
dda82a2eab
tests/zfs-tests/tests/functional/chattr
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue