#!/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='/lkp/lkp/.src-20170409-002737/allot/cyclic:linux-devel:devel-hourly/snb-black/kernel_selftests.yaml' export queue='bisect' export testbox='snb-black' export tbox_group='snb-black' export submit_id='58ec489c0b9a9309c6b140c9' export job_file='/lkp/scheduled/snb-black/kernel_selftests-defaults-debian-x86_64-2016-08-31.cgz-05a0a21e9346172402b5a2dd195eb75cce24efd5-20170411-68038-7da3ci-0.yaml' export id='2d889d3ffc696086b7182bc619a987c09e16d6be' export model='Sandy Bridge' export memory='8G' export nr_cpu=8 export hdd_partitions= export swap_partitions= export rootfs_partition='/dev/disk/by-id/ata-WDC_WD20EZRX-00D8PB0_WD-WCC4MDUPAHNE-part1' export netconsole_port=6646 export brand='Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz' export need_kernel_headers=true export need_kernel_selftests=true export need_kconfig='CONFIG_TEST_FIRMWARE CONFIG_TEST_USER_COPY CONFIG_MEMORY_NOTIFIER_ERROR_INJECT CONFIG_MEMORY_HOTPLUG_SPARSE=y CONFIG_NOTIFIER_ERROR_INJECTION CONFIG_FTRACE=y CONFIG_TEST_BITMAP CONFIG_TEST_PRINTF CONFIG_TEST_STATIC_KEYS CONFIG_BPF_SYSCALL=y CONFIG_NET_CLS_BPF=m CONFIG_BPF_EVENTS=y CONFIG_TEST_BPF=m CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_HIST_TRIGGERS=y CONFIG_EMBEDDED=y CONFIG_GPIO_MOCKUP=y CONFIG_USERFAULTFD=y CONFIG_SW_SYNC=y CONFIG_MISC_FILESYSTEMS=y CONFIG_PSTORE=y CONFIG_PSTORE_PMSG=y CONFIG_PSTORE_CONSOLE=y CONFIG_PSTORE_RAM=m CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y CONFIG_EXPERT=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_EFIVAR_FS' export commit='05a0a21e9346172402b5a2dd195eb75cce24efd5' export run_on_local_disk=true export kconfig='x86_64-rhel-7.2' export compiler='gcc-6' export rootfs='debian-x86_64-2016-08-31.cgz' export enqueue_time='2017-04-11 11:08:12 +0800' export _id='58ec489c0b9a9309c6b140c9' export user='lkp' export head_commit='616798a2e06184be05cf1ca60cdc03f394dad16f' export base_commit='a71c9a1c779f2499fb2afc0553e543f18aff6edf' export branch='linux-devel/devel-hourly-2017040509' export result_root='/result/kernel_selftests/defaults/snb-black/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/05a0a21e9346172402b5a2dd195eb75cce24efd5/0' 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=lkp job=/lkp/scheduled/snb-black/kernel_selftests-defaults-debian-x86_64-2016-08-31.cgz-05a0a21e9346172402b5a2dd195eb75cce24efd5-20170411-68038-7da3ci-0.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linux-devel/devel-hourly-2017040509 commit=05a0a21e9346172402b5a2dd195eb75cce24efd5 BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/05a0a21e9346172402b5a2dd195eb75cce24efd5/vmlinuz-4.11.0-rc2-00001-g05a0a21 erst_disable max_uptime=3600 RESULT_ROOT=/result/kernel_selftests/defaults/snb-black/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/05a0a21e9346172402b5a2dd195eb75cce24efd5/0 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/lkp/lkp-x86_64.cgz' export modules_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-6/05a0a21e9346172402b5a2dd195eb75cce24efd5/modules.cgz' export bm_initrd='/osimage/deps/debian-x86_64-2016-08-31.cgz/lkp_2017-04-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/deps/debian-x86_64-2016-08-31.cgz/kernel_selftests_2017-03-17.cgz,/osimage/pkg/debian-x86_64-2016-08-31.cgz/kernel_selftests-x86_64_2017-03-16.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/hw_2016-11-15.cgz' export linux_headers_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-6/05a0a21e9346172402b5a2dd195eb75cce24efd5/linux-headers.cgz' export linux_selftests_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-6/05a0a21e9346172402b5a2dd195eb75cce24efd5/linux-selftests.cgz' export site='inn' export LKP_CGI_PORT=80 export LKP_CIFS_PORT=139 export kernel='/pkg/linux/x86_64-rhel-7.2/gcc-6/05a0a21e9346172402b5a2dd195eb75cce24efd5/vmlinuz-4.11.0-rc2-00001-g05a0a21' export dequeue_time='2017-04-11 11:38:21 +0800' export job_initrd='/lkp/scheduled/snb-black/kernel_selftests-defaults-debian-x86_64-2016-08-31.cgz-05a0a21e9346172402b5a2dd195eb75cce24efd5-20170411-68038-7da3ci-0.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 $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 } "$@"