diff --git a/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl b/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl index 404c476..36105f8 100644 --- a/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl +++ b/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl @@ -40,8 +40,10 @@ wait prompt_sonic_root sendln "bgctl run /usr/sbin/memtester 1G" ; Continue Execture ; ========== SSD read/write ========== +sprintf2 cmd_ssd "bgctl run qfx5252-stress-ssd 1G --runtime %d --passes %d --write --force --log /host/hw-eval/jobs/qfx5252-stress-ssd.log" SSD_RUNTIME SSD_COUNT wait prompt_sonic_root -sendln "bgctl run qfx5252-stress-ssd 1G --runtime 86400 --passes 5 --write --force --log /host/hw-eval/jobs/qfx5252-stress-ssd.log" +;sendln "bgctl run qfx5252-stress-ssd 1G --runtime 86400 --passes 5 --write --force --log /host/hw-eval/jobs/qfx5252-stress-ssd.log" +sendln cmd_ssd ; ========== USB read/write ========== ; ---- Get USB partition node -> usb_dev ---- @@ -52,7 +54,8 @@ waitregex '<]*)>>' usb_dev = groupmatchstr1 wait prompt_sonic_root -sprintf2 cmd "bgctl run qfx5252-stress-usb %s 256M --runtime 86400 --passes 1 --write --log /host/hw-eval/jobs/qfx5252-stress-usb.log" usb_dev +;sprintf2 cmd "bgctl run qfx5252-stress-usb %s 256M --runtime 86400 --passes 1 --write --log /host/hw-eval/jobs/qfx5252-stress-usb.log" usb_dev +sprintf2 cmd "bgctl run qfx5252-stress-usb %s 256M --runtime %d --passes %d --write --log /host/hw-eval/jobs/qfx5252-stress-usb.log" usb_dev USB_RUNTIME USB_COUNT sendln cmd ;wait prompt_sonic_root @@ -73,6 +76,7 @@ if result = 0 then messagebox 'cdc_ncm interface not found. Ping test skipped.' 'ERROR' goto skip_ping endif +timeout = 0 strlen matchstr cut_len = result - 6 ; 'NCMIF=' = 6 chars strcopy matchstr 7 cut_len ncm_if ; -> ncm_if = "eth2" / "eth3" diff --git a/src/Script_ABC_Blanton/config.ttl b/src/Script_ABC_Blanton/config.ttl index 08e8751..80cbd61 100644 --- a/src/Script_ABC_Blanton/config.ttl +++ b/src/Script_ABC_Blanton/config.ttl @@ -17,6 +17,14 @@ FAN_SPEED = 100 SWB_UNIT0 = 1 ; 1 = this DUT has switch unit 0, wait for it ; 0 = skip SWB_UNIT1 = 1 ; 1 = this DUT has switch unit 1, wait for it ; 0 = skip +;================================================================ +; Stress_Test +;================================================================ +SSD_RUNTIME = 600 ; Unit seconds, 600 = 10 minutes +SSD_COUNT = 720 ; Total time = SSD_RUNTIME * SSD_COUNT +USB_RUNTIME = 600 ; Unit seconds, 600 = 10 minutes +USB_COUNT = 720 ; Total time = USB_RUNTIME * USB_COUNT + ;================================================================ ; Prompt Definitions ;================================================================