#!/bin/sh export_top_env() { export suite='otc_ddt' export testcase='otc_ddt' export category='functional' export platform='bxt-p-rvp' export kernel_cmdline='initcall_debug text log_buf_len=4M no_console_suspend ignore_loglevel resume=/dev/sda3' export job_origin='/lkp/lkp/.src-20170419-111221/jobs/ddt-bxtp.yaml' export queue='bisect' export testbox='lkp-bxt01' export commit='8f743d03948db721dffbc1de53f0d9a5cd4cef05' export branch='linus/master' export do_not_reboot_for_same_kernel='1' export name='/lkp/lkp/.src-20170419-111221/jobs/ddt-bxtp.yaml' export tbox_group='lkp-bxt01' export submit_id='58f95f4f0b9a93939c84b6bb' export job_file='/lkp/scheduled/lkp-bxt01/otc_ddt-bxt-p-rvp-mmc_bat_tests-debian-x86_64-2016-08-31.cgz-8f743d03948db721dffbc1de53f0d9a5cd4cef05-20170421-103324-yf85n0-0.yaml' export id='e3c2ab31eee6708c20eb5281f9a59b2c50f5c0b5' export model='Broxton-P' export nr_cpu=4 export memory='8G' export hdd_partitions= export swap_partitions='ata-INTEL_SSDSC2BA400G3_BTTV3162046P400HGN-part3' export ssd_partitions= export rootfs_partition= export netconsole_port=6650 export cpu_info='stepping:D0' export bios_version='APLK_B0_IFWI_X64_R_2016_12_12_1024_PROD_SP1_RVP1' export ksc_version=1.1 export hw_version='APL RVP 2A (02) FAB1' export hw_rework='R17,R18' export need_kconfig='CONFIG_DMATEST CONFIG_DMA_ENGINE=y CONFIG_DMADEVICES=y CONFIG_DW_DMAC_PCI CONFIG_INTEL_PCH_THERMAL CONFIG_POWERCAP=y CONFIG_INTEL_RAPL CONFIG_IOSF_MBI CONFIG_GPIO_LYNXPOINT CONFIG_GPIOLIB=y CONFIG_ACPI' 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-21 09:24:31 +0800' export _id='58f95f4f0b9a93939c84b6bb' export user='lkp' export result_root='/result/otc_ddt/bxt-p-rvp-mmc_bat_tests/lkp-bxt01/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/8f743d03948db721dffbc1de53f0d9a5cd4cef05/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/lkp-bxt01/otc_ddt-bxt-p-rvp-mmc_bat_tests-debian-x86_64-2016-08-31.cgz-8f743d03948db721dffbc1de53f0d9a5cd4cef05-20170421-103324-yf85n0-0.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linus/master commit=8f743d03948db721dffbc1de53f0d9a5cd4cef05 BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/8f743d03948db721dffbc1de53f0d9a5cd4cef05/vmlinuz-4.9.0-rc7-00076-g8f743d0 initcall_debug text log_buf_len=4M no_console_suspend ignore_loglevel resume=/dev/sda3 max_uptime=3600 RESULT_ROOT=/result/otc_ddt/bxt-p-rvp-mmc_bat_tests/lkp-bxt01/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/8f743d03948db721dffbc1de53f0d9a5cd4cef05/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 earlyprintk=ttyUSB0,115200 systemd.log_level=err console=ttyUSB0,115200 console=tty0 rw' export lkp_initrd='/lkp/lkp/lkp-x86_64.cgz' export modules_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-6/8f743d03948db721dffbc1de53f0d9a5cd4cef05/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/otc_ddt_2017-03-06.cgz,/osimage/pkg/debian-x86_64-2016-08-31.cgz/otc_ddt-x86_64_2017-04-11.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 _rt='/result/otc_ddt/bxt-p-rvp-mmc_bat_tests/lkp-bxt01/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/8f743d03948db721dffbc1de53f0d9a5cd4cef05' export kernel='/pkg/linux/x86_64-rhel-7.2/gcc-6/8f743d03948db721dffbc1de53f0d9a5cd4cef05/vmlinuz-4.9.0-rc7-00076-g8f743d0' export dequeue_time='2017-04-21 09:37:15 +0800' export job_initrd='/lkp/scheduled/lkp-bxt01/otc_ddt-bxt-p-rvp-mmc_bat_tests-debian-x86_64-2016-08-31.cgz-8f743d03948db721dffbc1de53f0d9a5cd4cef05-20170421-103324-yf85n0-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 pmeter_server='lkp-nhm-dp1' pmeter_device='yokogawa-wt310' $LKP_SRC/monitors/wrapper pmeter 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 test='mmc_bat_tests' $LKP_SRC/tests/wrapper otc_ddt } extract_stats() { $LKP_SRC/stats/wrapper otc_ddt $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper pmeter $LKP_SRC/stats/wrapper time otc_ddt.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 } "$@"