Test program expects only immutable on lower layer (test failure),
but does not expect the immutable file to be on the upper layer.
The later case is actually what *should* happen, except overlayfs
didn't properly implement this case yet (but is now in the works).
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
 _cleanup()
 {
        cd /
-       $CHATTR_PROG -i $lowerdir/foo
+       $CHATTR_PROG -i $lowerdir/foo > /dev/null 2>&1
+       $CHATTR_PROG -i $upperdir/foo > /dev/null 2>&1
        rm -f $tmp.*
 }
 
 
 # prepare lower test file
 lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER
+upperdir=$OVL_BASE_SCRATCH_MNT/$OVL_UPPER
 mkdir -p $lowerdir
 touch $lowerdir/foo