#!/bin/sh export_top_env() { export suite='hwsim' export testcase='hwsim' export category='functional' export need_memory='4G' export job_origin='/lkp/lkp/.src-20181129-143140/allot/cyclic:vm:linux-devel:devel-hourly/vm-snb-8G/hwsim.yaml' export queue='validate' export testbox='vm-snb-8G-2' export tbox_group='vm-snb-8G' export submit_id='5c0399060b9a93c75c0dffff' export job_file='/lkp/jobs/scheduled/vm-snb-8G-2/hwsim-hwsim-10-debian-x86_64-2018-04-03.cgz-113f3aaa81bd56aba02659786ed65cbd9cb9a6fc-20181202-51036-1odb8ns-21.yaml' export id='da2719a08404b06fa9a559e620e62d9775fcf49a' export model='qemu-system-x86_64 -enable-kvm -cpu SandyBridge' export nr_cpu=2 export memory='8G' export hdd_partitions='/dev/vda /dev/vdb /dev/vdc /dev/vdd /dev/vde' export swap_partitions='/dev/vdf' export need_kconfig='CONFIG_WLAN=y CONFIG_CFG80211=m CONFIG_CFG80211_WEXT=y CONFIG_MAC80211=m CONFIG_MAC80211_HWSIM=m CONFIG_MAC80211_LEDS=y CONFIG_MAC80211_MESH=y CONFIG_MAC80211_DEBUGFS=y CONFIG_KVM_GUEST=y' export commit='113f3aaa81bd56aba02659786ed65cbd9cb9a6fc' export kconfig='x86_64-rhel-7.2' export compiler='gcc-7' export rootfs='debian-x86_64-2018-04-03.cgz' export enqueue_time='2018-12-02 16:34:14 +0800' export _id='5c0399130b9a93c75c0e000c' export _rt='/result/hwsim/hwsim-10/vm-snb-8G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/113f3aaa81bd56aba02659786ed65cbd9cb9a6fc' export user='lkp' export head_commit='5d9b5e5f9462205355f43a735c19093788801eb5' export base_commit='2e6e902d185027f8e3cb8b7305238f7e35d6a436' export branch='linux-devel/devel-hourly-2018112806' export result_root='/result/hwsim/hwsim-10/vm-snb-8G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/113f3aaa81bd56aba02659786ed65cbd9cb9a6fc/21' export LKP_SERVER='inn' export nr_vm=70 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-8G-2/hwsim-hwsim-10-debian-x86_64-2018-04-03.cgz-113f3aaa81bd56aba02659786ed65cbd9cb9a6fc-20181202-51036-1odb8ns-21.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linux-devel/devel-hourly-2018112806 commit=113f3aaa81bd56aba02659786ed65cbd9cb9a6fc BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-7/113f3aaa81bd56aba02659786ed65cbd9cb9a6fc/vmlinuz-4.19.0-12457-g113f3aa max_uptime=3600 RESULT_ROOT=/result/hwsim/hwsim-10/vm-snb-8G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/113f3aaa81bd56aba02659786ed65cbd9cb9a6fc/21 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/113f3aaa81bd56aba02659786ed65cbd9cb9a6fc/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/hwsim_2018-09-18.cgz,/osimage/pkg/debian-x86_64-2018-04-03.cgz/hwsim-x86_64-cc6263ef6_2018-09-18.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=48 export kernel='/pkg/linux/x86_64-rhel-7.2/gcc-7/113f3aaa81bd56aba02659786ed65cbd9cb9a6fc/vmlinuz-4.19.0-12457-g113f3aa' export dequeue_time='2018-12-02 16:34:58 +0800' export job_initrd='/lkp/jobs/scheduled/vm-snb-8G-2/hwsim-hwsim-10-debian-x86_64-2018-04-03.cgz-113f3aaa81bd56aba02659786ed65cbd9cb9a6fc-20181202-51036-1odb8ns-21.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='hwsim-10' $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 } "$@"