#!/bin/sh export_top_env() { export suite='mdadm-selftests' export testcase='mdadm-selftests' export category='functional' export need_memory='1G' export need_modules=true export job_origin='/lkp/lkp/.src-20190408-201836/allot/cyclic:vm:linux-devel:devel-hourly/vm-snb-4G/mdadm-selftests.yaml' export queue_cmdline_keys='branch commit' export queue='validate' export testbox='vm-snb-4G-114' export tbox_group='vm-snb-4G' export submit_id='5cadc5cb0b9a933aa703c0c9' export job_file='/lkp/jobs/scheduled/vm-snb-4G-114/mdadm-selftests-1HDD-10-debian-x86_64-2018-04-03.cgz-4f4fd7c5798bbd-20190410-80551-1h38t7-3.yaml' export id='5c7a2243ff1ceefaa492a17994af14187bbc14c8' export queuer_version='/lkp/lkp/.src-20190409-101104' export arch='x86_64' export need_kconfig='CONFIG_BLK_DEV_SD CONFIG_SCSI CONFIG_BLOCK=y CONFIG_SATA_AHCI CONFIG_SATA_AHCI_PLATFORM CONFIG_ATA CONFIG_PCI=y 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 CONFIG_KVM_GUEST=y' export commit='4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef' export ssh_base_port=23032 export kconfig='x86_64-rhel-7.6' export compiler='gcc-7' export rootfs='debian-x86_64-2018-04-03.cgz' export enqueue_time='2019-04-10 18:30:37 +0800' export _id='5cadc5cd0b9a933aa703c0ca' export _rt='/result/mdadm-selftests/1HDD-10/vm-snb-4G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.6/gcc-7/4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef' export user='lkp' export head_commit='d45d8d130f10496fc152c2f8feb5deebe4e6e206' export base_commit='15ade5d2e7775667cf191cf2f94327a4889f8b9d' export branch='linux-devel/devel-hourly-2019040912' export result_root='/result/mdadm-selftests/1HDD-10/vm-snb-4G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.6/gcc-7/4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef/3' export scheduler_version='/lkp/lkp/.src-20190410-203527' export LKP_SERVER='inn' export max_uptime=3600 export initrd='/osimage/debian/debian-x86_64-2018-04-03.cgz' export bootloader_append='root=/dev/ram0 user=lkp job=/lkp/jobs/scheduled/vm-snb-4G-114/mdadm-selftests-1HDD-10-debian-x86_64-2018-04-03.cgz-4f4fd7c5798bbd-20190410-80551-1h38t7-3.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.6 branch=linux-devel/devel-hourly-2019040912 commit=4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.6/gcc-7/4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef/vmlinuz-5.1.0-rc3-00023-g4f4fd7c max_uptime=3600 RESULT_ROOT=/result/mdadm-selftests/1HDD-10/vm-snb-4G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.6/gcc-7/4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef/3 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 console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw' export modules_initrd='/pkg/linux/x86_64-rhel-7.6/gcc-7/4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef/modules.cgz' export bm_initrd='/osimage/deps/debian-x86_64-2018-04-03.cgz/run-ipconfig_2018-04-03.cgz,/osimage/deps/debian-x86_64-2018-04-03.cgz/lkp_2018-04-03.cgz,/osimage/deps/debian-x86_64-2018-04-03.cgz/rsync-rootfs_2018-04-03.cgz,/osimage/deps/debian-x86_64-2018-04-03.cgz/mdadm-selftests_2019-04-09.cgz,/osimage/pkg/debian-x86_64-2018-04-03.cgz/mdadm-selftests-x86_64-25cfca3_2019-04-09.cgz' export lkp_initrd='/lkp/lkp/lkp-x86_64.cgz' export site='inn' export LKP_CGI_PORT=80 export LKP_CIFS_PORT=139 export repeat_to=4 export schedule_notify_address= export model='qemu-system-x86_64 -enable-kvm -cpu SandyBridge' export nr_cpu=2 export memory='4G' export hdd_partitions='/dev/vda /dev/vdb /dev/vdc /dev/vdd /dev/vde /dev/vdf' export swap_partitions='/dev/vdg' export vm_tbox_group='vm-snb-4G' export nr_vm=172 export vm_base_id=1401 export kernel='/pkg/linux/x86_64-rhel-7.6/gcc-7/4f4fd7c5798bbdd5a03a60f6269cf1177fbd11ef/vmlinuz-5.1.0-rc3-00023-g4f4fd7c' export dequeue_time='2019-04-10 23:12:22 +0800' export job_initrd='/lkp/jobs/scheduled/vm-snb-4G-114/mdadm-selftests-1HDD-10-debian-x86_64-2018-04-03.cgz-4f4fd7c5798bbd-20190410-80551-1h38t7-3.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_setup nr_hdd=1 $LKP_SRC/setup/disk run_monitor $LKP_SRC/monitors/wrapper kmsg run_monitor $LKP_SRC/monitors/wrapper heartbeat run_monitor $LKP_SRC/monitors/wrapper meminfo run_monitor $LKP_SRC/monitors/wrapper oom-killer run_monitor $LKP_SRC/monitors/plain/watchdog run_test test_prefix='10' $LKP_SRC/tests/wrapper mdadm-selftests } extract_stats() { export stats_part_begin= export stats_part_end= $LKP_SRC/stats/wrapper mdadm-selftests $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper meminfo $LKP_SRC/stats/wrapper time mdadm-selftests.time $LKP_SRC/stats/wrapper dmesg $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper last_state $LKP_SRC/stats/wrapper stderr $LKP_SRC/stats/wrapper time } "$@"