1AUTHOR = "puthik" 2NAME = "power_ThermalLoad.option" 3PURPOSE = "Run thermal workload and log temperature." 4 5CRITERIA = "This test is a benchmark." 6TIME = "SHORT" 7TEST_CATEGORY = "Benchmark" 8TEST_CLASS = "power" 9TEST_TYPE = "client" 10PY_VERSION = 3 11 12DOC = """ 13This test is power_ThermalLoad that can use custom args. 14 15- duration: time in seconds to display url and measure power, default 2.5 hours. 16- numfish: number of fish to pass to WebGL Aquarium, default 3000 fishes. 17""" 18HOURS=60 * 60 19 20args_dict = utils.args_to_dict(args) 21 22duration = int(args_dict.get('duration', 2.5 * HOURS)) 23# utils.args_to_dict convert arg to lower case. 24numFish = int(args_dict.get('numfish', 3000)) 25seconds_period = int(args_dict.get('seconds_period', 20)) 26pdash_note = args_dict.get('pdash_note', '') 27 28logging.info(str(args_dict)) 29job.run_test('power_ThermalLoad', tag=NAME.split('.')[1], duration=duration, 30 numFish=numFish, seconds_period=seconds_period, 31 pdash_note=pdash_note) 32