:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 13:40:42 ] :: [ PASS ] :: Command 'dmesg -C' (Expected 0, got 0) :: [ 13:40:42 ] :: [ PASS ] :: Command 'uname -a' (Expected 0, got 0) :: [ 13:40:42 ] :: [ LOG ] :: ./runtest.sh :: [ 13:40:46 ] :: [ PASS ] :: Command 'rpm -q zstd rsync || yum install -y zstd rsync' (Expected 0, got 0) :: [ 13:40:46 ] :: [ LOG ] :: need remove swap frist :: [ 13:40:46 ] :: [ PASS ] :: Command 'swapoff /dev/zram0' (Expected 0, got 0) :: [ 13:40:46 ] :: [ PASS ] :: Command 'echo 0 > /sys/class/zram-control/hot_remove' (Expected 0, got 0) :: [ 13:40:46 ] :: [ PASS ] :: Command 'rmmod zram' (Expected 0, got 0) :: [ 13:40:46 ] :: [ PASS ] :: Command 'lsblk' (Expected 0, got 0) :: [ 13:40:46 ] :: [ PASS ] :: Command 'modprobe zram num_devices=1' (Expected 0, got 0) :: [ 13:40:49 ] :: [ PASS ] :: Command 'cat /sys/block/zram0/comp_algorithm' (Expected 0, got 0) :: [ 13:40:49 ] :: [ PASS ] :: Command 'echo zstd > /sys/block/zram0/comp_algorithm' (Expected 0, got 0) :: [ 13:40:49 ] :: [ PASS ] :: Command 'cat /sys/block/zram0/comp_algorithm' (Expected 0, got 0) :: [ 13:40:49 ] :: [ PASS ] :: Command 'echo 1G > /sys/block/zram0/disksize' (Expected 0, got 0) :: [ 13:40:49 ] :: [ PASS ] :: Command 'lsblk' (Expected 0, got 0) :: [ 13:40:49 ] :: [ PASS ] :: Command 'mke2fs -m 0 -b 4096 -O sparse_super -L zram /dev/zram0' (Expected 0, got 0) :: [ 13:40:50 ] :: [ PASS ] :: Command 'mkdir -p /mnt/zram' (Expected 0, got 0) :: [ 13:40:50 ] :: [ PASS ] :: Command 'mount -o relatime,noexec,nosuid /dev/zram0 /mnt/zram' (Expected 0, got 0) :: [ 13:40:50 ] :: [ PASS ] :: Command 'mount | grep zram' (Expected 0, got 0) :: [ 13:40:50 ] :: [ PASS ] :: Command 'lsblk' (Expected 0, got 0) :: [ 13:40:50 ] :: [ PASS ] :: Command 'ls temp' (Expected 0, got 0) :: [ 13:40:50 ] :: [ PASS ] :: Command 'cp -r temp /mnt/zram' (Expected 0, got 0) :: [ 13:40:51 ] :: [ PASS ] :: Command 'umount /mnt/zram' (Expected 0, got 0) :: [ 13:40:51 ] :: [ PASS ] :: Command 'echo 3 > /proc/sys/vm/drop_caches' (Expected 0, got 0) :: [ 13:40:51 ] :: [ PASS ] :: Command 'mount -o relatime,noexec,nosuid /dev/zram0 /mnt/zram' (Expected 0, got 0) :: [ 13:40:51 ] :: [ PASS ] :: Command 'diff -rp temp /mnt/zram/temp' (Expected 0, got 0) :: [ 13:40:51 ] :: [ LOG ] :: get funny stats :: [ 13:40:51 ] :: [ PASS ] :: Command 'umount /mnt/zram' (Expected 0, got 0) :: [ 13:40:51 ] :: [ PASS ] :: Command 'rm -rf /mnt/zram/*' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: Command 'rmdir /mnt/zram/' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: Command 'rmmod zram' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: Command 'rm -rf temp' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: Command 'modprobe -v zram' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: Command 'echo zstd > /sys/block/zram0/comp_algorithm' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: Command 'echo 4G > /sys/block/zram0/disksize' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: Command 'mkswap /dev/zram0' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: Command 'swapon /dev/zram0' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: Command 'lsblk' (Expected 0, got 0) :: [ 13:40:52 ] :: [ PASS ] :: check the errors (Expected 1, got 1) :: [ 13:40:52 ] :: [ PASS ] :: check the errors (Expected 1, got 1) :: [ 13:40:52 ] :: [ PASS ] :: check the errors (Expected 1, got 1) :: [ 13:40:52 ] :: [ PASS ] :: check the errors (Expected 1, got 1) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 10s :: Assertions: 39 good, 0 bad :: RESULT: PASS (Test)