tests/micropython: Add missing SystemExit after printing SKIP.
The test runner expects `print("SKIP")` to be followed by
`raise SystemExit`. Otherwise it waits for 10 seconds for the target to
do a soft reset before timing out and continuing.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -5,8 +5,9 @@ import micropython
|
|||||||
# these functions are not always available
|
# these functions are not always available
|
||||||
if not hasattr(micropython, "mem_info"):
|
if not hasattr(micropython, "mem_info"):
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
else:
|
raise SystemExit
|
||||||
micropython.mem_info()
|
|
||||||
micropython.mem_info(1)
|
micropython.mem_info()
|
||||||
micropython.qstr_info()
|
micropython.mem_info(1)
|
||||||
micropython.qstr_info(1)
|
micropython.qstr_info()
|
||||||
|
micropython.qstr_info(1)
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ import micropython
|
|||||||
# these functions are not always available
|
# these functions are not always available
|
||||||
if not hasattr(micropython, "mem_total"):
|
if not hasattr(micropython, "mem_total"):
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
else:
|
raise SystemExit
|
||||||
t = micropython.mem_total()
|
|
||||||
c = micropython.mem_current()
|
|
||||||
p = micropython.mem_peak()
|
|
||||||
|
|
||||||
l = list(range(10000))
|
t = micropython.mem_total()
|
||||||
|
c = micropython.mem_current()
|
||||||
|
p = micropython.mem_peak()
|
||||||
|
|
||||||
print(micropython.mem_total() > t)
|
l = list(range(10000))
|
||||||
print(micropython.mem_current() > c)
|
|
||||||
print(micropython.mem_peak() > p)
|
print(micropython.mem_total() > t)
|
||||||
|
print(micropython.mem_current() > c)
|
||||||
|
print(micropython.mem_peak() > p)
|
||||||
|
|||||||
@@ -3,5 +3,6 @@ import micropython
|
|||||||
|
|
||||||
if not hasattr(micropython, "stack_use"):
|
if not hasattr(micropython, "stack_use"):
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
else:
|
raise SystemExit
|
||||||
print(type(micropython.stack_use())) # output varies
|
|
||||||
|
print(type(micropython.stack_use())) # output varies
|
||||||
|
|||||||
Reference in New Issue
Block a user