Skip to content

Commit dc526be

Browse files
authored
Archive power cut test binary (ARMmbed#79)
* Update Jenkinsfile * Slow down sending of mbedgt commands So that the device serial buffer doesn't overflow
1 parent bb2dc1c commit dc526be

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ def morpheusBuildStep(target,
127127
// build with test setup
128128
execute("mbed ls")
129129
execute("mbed compile -m ${target} -t ${toolchain} -c -v --profile=tiny.json")
130+
archive "BUILD/${target}/${toolchain}/mbed-bootloader-internal.bin"
130131

131132
// Test with power cut hardware
132133
env.RAAS_USERNAME = "ci"
133134
env.RAAS_PASSWORD = "ci"
134135
env.RAAS_PYCLIENT_FORCE_REMOTE_ALLOCATION = 1
135136

136137
test_spec = "power_cut_test/test_spec_armcc.json"
137-
138138
execute("mbedgt --grm ${target}:raas_client:oulab.mbedcloudtesting.com:8055 -V -v --test-spec ${test_spec} -e power_cut_test/host_tests/")
139139
}
140140
}

power_cut_test/host_tests/power-cut-test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import mbed_host_tests as mht
2020
# from mbed_host_tests import BaseHostTest,BaseHostTestAbstract
2121
from time import time
22+
from time import sleep
2223
import threading
2324
import uuid
2425
from random import uniform
@@ -94,7 +95,9 @@ def _callback_result(self, key, value, timestamp):
9495
def send_init(self):
9596
cutPoint = self.nextCutPoint()
9697
self.send_kv("jig_state", cutPoint['state'])
98+
sleep(0.1)
9799
self.send_kv("jig_delay", cutPoint['delay'])
100+
sleep(0.1)
98101
self.send_kv("go",0);
99102
self.__cutIdx += 1
100103

0 commit comments

Comments
 (0)