#!/bin/sh export_top_env() { export suite='hwsim' export testcase='hwsim' export category='functional' export job_origin='/lkp/lkp/.src-20170124-173744/allot/cyclic:linux-devel:devel-hourly/snb-black/hwsim.yaml' export queue='bisect' export testbox='snb-black' export tbox_group='snb-black' export submit_id='588d4d6d0b9a93a9813291f3' export job_file='/lkp/scheduled/snb-black/hwsim-hwsim-01-debian-x86_64-2016-08-31.cgz-4a6736b0fd81a3ddc7056957a9fe4972df0783e4-20170129-108929-124105g-0.yaml' export id='c05e37747c06c1eb9bca248d7c982f6991089a81' export model='Sandy Bridge' export memory='8G' export nr_cpu=8 export hdd_partitions= export swap_partitions= export rootfs_partition= export netconsole_port=6646 export brand='Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz' export need_kconfig='CONFIG_WLAN=y CONFIG_CFG80211 CONFIG_CFG80211_WEXT=y CONFIG_MAC80211 CONFIG_MAC80211_HWSIM CONFIG_MAC80211_LEDS=y CONFIG_MAC80211_MESH=y' export commit='4a6736b0fd81a3ddc7056957a9fe4972df0783e4' export kconfig='x86_64-rhel-7.2' export compiler='gcc-6' export rootfs='debian-x86_64-2016-08-31.cgz' export enqueue_time='2017-01-29 10:03:25 +0800' export _id='588d4d6d0b9a93a9813291f3' export user='lkp' export head_commit='485133a01d04000ab138d59794f361b0d39b3f1c' export base_commit='7a308bb3016f57e5be11a677d15b821536419d36' export branch='linux-devel/devel-hourly-2017012710' export result_root='/result/hwsim/hwsim-01/snb-black/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/4a6736b0fd81a3ddc7056957a9fe4972df0783e4/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/hwsim-hwsim-01-debian-x86_64-2016-08-31.cgz-4a6736b0fd81a3ddc7056957a9fe4972df0783e4-20170129-108929-124105g-0.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linux-devel/devel-hourly-2017012710 commit=4a6736b0fd81a3ddc7056957a9fe4972df0783e4 BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/4a6736b0fd81a3ddc7056957a9fe4972df0783e4/vmlinuz-4.10.0-rc4-00737-g4a6736b max_uptime=3600 RESULT_ROOT=/result/hwsim/hwsim-01/snb-black/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/4a6736b0fd81a3ddc7056957a9fe4972df0783e4/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 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/4a6736b0fd81a3ddc7056957a9fe4972df0783e4/modules.cgz' export bm_initrd='/osimage/deps/debian-x86_64-2016-08-31.cgz/lkp_2016-11-15.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/hwsim_2016-11-16.cgz,/osimage/pkg/debian-x86_64-2016-08-31.cgz/hwsim-x86_64_2016-11-16.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 kernel='/pkg/linux/x86_64-rhel-7.2/gcc-6/4a6736b0fd81a3ddc7056957a9fe4972df0783e4/vmlinuz-4.10.0-rc4-00737-g4a6736b' export dequeue_time='2017-01-29 10:47:15 +0800' export job_initrd='/lkp/scheduled/snb-black/hwsim-hwsim-01-debian-x86_64-2016-08-31.cgz-4a6736b0fd81a3ddc7056957a9fe4972df0783e4-20170129-108929-124105g-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 group='hwsim-01' $LKP_SRC/tests/wrapper hwsim } extract_stats() { $LKP_SRC/stats/wrapper hwsim $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper time hwsim.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 } "$@"