:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 17:46:26 ] :: [ PASS ] :: Command 'dmesg -C' (Expected 0, got 0) :: [ 17:46:26 ] :: [ PASS ] :: Command 'uname -a' (Expected 0, got 0) :: [ 17:46:26 ] :: [ LOG ] :: ./runtest.sh :: [ 17:46:26 ] :: [ PASS ] :: Command 'rpm -q zstd rsync || yum install -y zstd rsync' (Expected 0, got 0) :: [ 17:46:26 ] :: [ LOG ] :: need remove swap frist :: [ 17:46:26 ] :: [ PASS ] :: Command 'swapoff /dev/zram0' (Expected 0, got 0) :: [ 17:46:27 ] :: [ PASS ] :: Command 'echo 0 > /sys/class/zram-control/hot_remove' (Expected 0, got 0) :: [ 17:46:27 ] :: [ PASS ] :: Command 'rmmod zram' (Expected 0, got 0) :: [ 17:46:27 ] :: [ PASS ] :: Command 'lsblk' (Expected 0, got 0) :: [ 17:46:27 ] :: [ PASS ] :: Command 'modprobe zram num_devices=1' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'cat /sys/block/zram0/comp_algorithm' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'echo zstd > /sys/block/zram0/comp_algorithm' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'cat /sys/block/zram0/comp_algorithm' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'echo 1G > /sys/block/zram0/disksize' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'lsblk' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'mke2fs -m 0 -b 4096 -O sparse_super -L zram /dev/zram0' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'mkdir -p /mnt/zram' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'mount -o relatime,noexec,nosuid /dev/zram0 /mnt/zram' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'mount | grep zram' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'lsblk' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'rsync -av --exclude=.debug /root /mnt/zram' (Expected 0, got 0) :: [ 17:46:30 ] :: [ PASS ] :: Command 'umount /mnt/zram' (Expected 0, got 0) :: [ 17:46:31 ] :: [ PASS ] :: Command 'echo 3 > /proc/sys/vm/drop_caches' (Expected 0, got 0) :: [ 17:46:31 ] :: [ PASS ] :: Command 'mount -o relatime,noexec,nosuid /dev/zram0 /mnt/zram' (Expected 0, got 0) :: [ 17:46:31 ] :: [ PASS ] :: Command 'diff -rp -x .debug /root /mnt/zram/root' (Expected 0, got 0) :: [ 17:46:31 ] :: [ LOG ] :: get funny stats :: [ 17:46:31 ] :: [ PASS ] :: Command 'umount /mnt/zram' (Expected 0, got 0) :: [ 17:46:31 ] :: [ PASS ] :: Command 'rm -rf /mnt/zram/*' (Expected 0, got 0) :: [ 17:46:31 ] :: [ PASS ] :: Command 'rmdir /mnt/zram/' (Expected 0, got 0) :: [ 17:46:32 ] :: [ PASS ] :: Command 'rmmod zram' (Expected 0, got 0) :: [ 17:46:32 ] :: [ PASS ] :: Command 'modprobe -v zram' (Expected 0, got 0) :: [ 17:46:32 ] :: [ PASS ] :: Command 'echo zstd > /sys/block/zram0/comp_algorithm' (Expected 0, got 0) :: [ 17:46:32 ] :: [ PASS ] :: Command 'echo 4G > /sys/block/zram0/disksize' (Expected 0, got 0) :: [ 17:46:32 ] :: [ PASS ] :: Command 'mkswap /dev/zram0' (Expected 0, got 0) :: [ 17:46:32 ] :: [ PASS ] :: Command 'swapon /dev/zram0' (Expected 0, got 0) :: [ 17:46:32 ] :: [ PASS ] :: Command 'lsblk' (Expected 0, got 0) :: [ 17:46:32 ] :: [ PASS ] :: check the errors (Expected 1, got 1) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 6s :: Assertions: 34 good, 0 bad :: RESULT: PASS (Test)