#!/bin/sh export_top_env() { export suite='kernel_selftests' export testcase='kernel_selftests' export category='functional' export need_cpu=2 export kernel_cmdline='erst_disable' export job_origin='/home/lizhijian/src/jobs/kernel_selftests.yaml' export testbox='vm-lkp-nex04-4G-11' export tbox_group='vm-lkp-nex04-4G' export serial_servers='lkp-wildcat lkp-st01 lkp-os lkp-nhm-dp1 lkp-nhm-dp2 lkp-nhm-d01' export boot_watchdog_mail='ignore' export need_kernel_headers='true true' export need_kernel_selftests='true true' export need_kconfig='CONFIG_KVM_GUEST=y' export kconfig='x86_64-rhel-7.2' export compiler='gcc-7' export queue='vip' export branch='linus/master' export commit='8bb2610bc4967f19672444a7b0407367f1540028' export submit_id='5b3055d30b9a932a96023e87' export job_file='/lkp/scheduled/vm-lkp-nex04-4G-11/kernel_selftests-kselftests-03-debian-x86_64-2018-04-03.cgz-8bb2610bc4967f19672444a7b0407367f1540028-20180625-76438-a9nra5-2.yaml' export id='eddff146dd882c8a34caa8f47a9bc65f92ceb0e1' export model='qemu-system-x86_64 -enable-kvm -cpu host' export nr_vm=20 export nr_cpu=2 export memory='4G' export hdd_partitions='/dev/vda' export swap_partitions='/dev/vdb' export ssh_base_port=23230 export user='lizhijian' export rootfs='debian-x86_64-2018-04-03.cgz' export enqueue_time='2018-06-25 10:39:16 +0800' export _id='5b3055d40b9a932a96023e89' export _rt='/result/kernel_selftests/kselftests-03/vm-lkp-nex04-4G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/8bb2610bc4967f19672444a7b0407367f1540028' export kernel='/pkg/linux/x86_64-rhel-7.2/gcc-7/8bb2610bc4967f19672444a7b0407367f1540028/vmlinuz-4.17.0-rc2-00006-g8bb2610' export result_root='/result/kernel_selftests/kselftests-03/vm-lkp-nex04-4G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/8bb2610bc4967f19672444a7b0407367f1540028/3' export dequeue_time='2018-06-25 10:39:21 +0800' 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=lizhijian job=/lkp/scheduled/vm-lkp-nex04-4G-11/kernel_selftests-kselftests-03-debian-x86_64-2018-04-03.cgz-8bb2610bc4967f19672444a7b0407367f1540028-20180625-76438-a9nra5-2.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linus/master commit=8bb2610bc4967f19672444a7b0407367f1540028 BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-7/8bb2610bc4967f19672444a7b0407367f1540028/vmlinuz-4.17.0-rc2-00006-g8bb2610 erst_disable max_uptime=3600 RESULT_ROOT=/result/kernel_selftests/kselftests-03/vm-lkp-nex04-4G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/8bb2610bc4967f19672444a7b0407367f1540028/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.2/gcc-7/8bb2610bc4967f19672444a7b0407367f1540028/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/kernel_selftests_2018-06-12.cgz,/osimage/pkg/debian-x86_64-2018-04-03.cgz/kernel_selftests-x86_64-8efcf34a2639_2018-06-12.cgz' export linux_headers_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-7/8bb2610bc4967f19672444a7b0407367f1540028/linux-headers.cgz' export linux_selftests_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-7/8bb2610bc4967f19672444a7b0407367f1540028/linux-selftests.cgz' export lkp_initrd='/lkp/lizhijian/lkp-x86_64.cgz' export site='inn' export LKP_CGI_PORT=80 export LKP_CIFS_PORT=139 export job_initrd='/lkp/scheduled/vm-lkp-nex04-4G-11/kernel_selftests-kselftests-03-debian-x86_64-2018-04-03.cgz-8bb2610bc4967f19672444a7b0407367f1540028-20180625-76438-a9nra5-2.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_test group='kselftests-03' $LKP_SRC/tests/wrapper kernel_selftests } extract_stats() { $LKP_SRC/stats/wrapper kernel_selftests $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper time kernel_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 } "$@"