#!/bin/sh export_top_env() { export suite='mdadm-selftests' export testcase='mdadm-selftests' export category='functional' export job_origin='/lkp/lizhijian/src/jobs/mdadm-selftests.yaml' export testbox='lkp-ivb-d04' export tbox_group='lkp-ivb-d04' export kconfig='x86_64-rhel-7.2' export compiler='gcc-6' export branch='linus/master' export name='/tmp/d20170626-2694-rpeycd/mdadm-selftests-01.yaml' export commit='6497709b5d1bccce7de1df678d5f147d614551d1' export queue='validate' export user='lizhijian' export submit_id='5952f5980b9a937aa69ebac6' export job_file='/lkp/scheduled/lkp-ivb-d04/mdadm-selftests-01-debian-x86_64-2016-08-31.cgz-6497709b5d1bccce7de1df678d5f147d614551d1-20170628-31398-p3jijw-1.yaml' export id='cd2db218a907f10f441b63777c0f0c376ce392c2' export model='Ivy Bridge' export nr_cpu=4 export memory='4G' export nr_hdd_partitions=0 export hdd_partitions= export netconsole_port=6675 export brand='Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz' export need_kconfig='CONFIG_MD=y CONFIG_BLK_DEV_MD CONFIG_MD_LINEAR CONFIG_MD_RAID0 CONFIG_MD_RAID1 CONFIG_MD_RAID10 CONFIG_MD_RAID456 CONFIG_MD_MULTIPATH CONFIG_BLK_DEV_LOOP' export rootfs='debian-x86_64-2016-08-31.cgz' export enqueue_time='2017-06-28 08:17:29 +0800' export _id='5952f5980b9a937aa69ebac6' export _rt='/result/mdadm-selftests/01/lkp-ivb-d04/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/6497709b5d1bccce7de1df678d5f147d614551d1' export result_root='/result/mdadm-selftests/01/lkp-ivb-d04/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/6497709b5d1bccce7de1df678d5f147d614551d1/1' export LKP_SERVER='inn' export max_uptime=3600 export initrd='/osimage/debian/debian-x86_64-2016-08-31.cgz' export bootloader_append='root=/dev/ram0 user=lizhijian job=/lkp/scheduled/lkp-ivb-d04/mdadm-selftests-01-debian-x86_64-2016-08-31.cgz-6497709b5d1bccce7de1df678d5f147d614551d1-20170628-31398-p3jijw-1.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linus/master commit=6497709b5d1bccce7de1df678d5f147d614551d1 BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/6497709b5d1bccce7de1df678d5f147d614551d1/vmlinuz-4.11.0-rc2-00257-g6497709b max_uptime=3600 RESULT_ROOT=/result/mdadm-selftests/01/lkp-ivb-d04/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/6497709b5d1bccce7de1df678d5f147d614551d1/1 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw' export lkp_initrd='/lkp/lizhijian/lkp-x86_64.cgz' export modules_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-6/6497709b5d1bccce7de1df678d5f147d614551d1/modules.cgz' export bm_initrd='/osimage/deps/debian-x86_64-2016-08-31.cgz/lkp_2017-05-01.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/rsync-rootfs_2016-11-15.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/run-ipconfig_2016-11-15.cgz,/osimage/pkg/debian-x86_64-2016-08-31.cgz/mdadm-selftests-x86_64_2016-12-19.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/hw_2016-11-15.cgz' export site='inn' export LKP_CGI_PORT=80 export LKP_CIFS_PORT=139 export repeat_to=4 export kernel='/pkg/linux/x86_64-rhel-7.2/gcc-6/6497709b5d1bccce7de1df678d5f147d614551d1/vmlinuz-4.11.0-rc2-00257-g6497709b' export dequeue_time='2017-06-28 08:26:04 +0800' export job_initrd='/lkp/scheduled/lkp-ivb-d04/mdadm-selftests-01-debian-x86_64-2016-08-31.cgz-6497709b5d1bccce7de1df678d5f147d614551d1-20170628-31398-p3jijw-1.cgz' [ -n "$LKP_SRC" ] || export LKP_SRC=/lkp/${user:-lkp}/src } run_job() { echo $$ > $TMP/run-job.pid . $LKP_SRC/lib/http.sh . $LKP_SRC/lib/job.sh . $LKP_SRC/lib/env.sh export_top_env run_monitor $LKP_SRC/monitors/wrapper kmsg run_monitor $LKP_SRC/monitors/wrapper heartbeat run_monitor $LKP_SRC/monitors/wrapper oom-killer run_monitor $LKP_SRC/monitors/plain/watchdog run_monitor $LKP_SRC/monitors/wrapper nfs-hang run_test test_prefix='01' $LKP_SRC/tests/wrapper mdadm-selftests } extract_stats() { $LKP_SRC/stats/wrapper mdadm-selftests $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper time mdadm-selftests.time $LKP_SRC/stats/wrapper time $LKP_SRC/stats/wrapper dmesg $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper stderr $LKP_SRC/stats/wrapper last_state } "$@"