diff --git a/mini_system_test/L1_mini_system_test.py b/mini_system_test/L1_mini_system_test.py index 6d38a6cbcc0585a11bc75a44b8f2b3970a2ef0d2..a9c4e0d55ce6152192e28b7d2809a3b32c3b34f2 100644 --- a/mini_system_test/L1_mini_system_test.py +++ b/mini_system_test/L1_mini_system_test.py @@ -144,10 +144,12 @@ if __name__ == "__main__": mem_size = int(mem_find[0].split()[2]) / 1024 / 1024 else: PrintToLog('Error:can find memory usage info!') + PrintToLog("End of check, test failed!") sys.exit(99) if mem_size > 25: PrintToLog( 'Error:memory usage is over the upper limit(25M),now is {:.2f}'.format(mem_size)) + PrintToLog("End of check, test failed!") sys.exit(99) target_dir = os.path.normpath(os.path.join(args.archive_path, "rootfs")) diff --git a/mini_system_test/L2_mini_system_test.py b/mini_system_test/L2_mini_system_test.py index dae7e1fdc5e207b12799359e2c7f79cd9dc314a5..22f403f775ec5ab758e72f3dbaa4f370e1485ae8 100644 --- a/mini_system_test/L2_mini_system_test.py +++ b/mini_system_test/L2_mini_system_test.py @@ -139,6 +139,7 @@ if __name__ == "__main__": if process_usage > 40: PrintToLog( "ERROR: Processes usage cannot be greater than 40M, but currently it's actually %.2fM" % process_usage) + PrintToLog("End of check, test failed!") sys.exit(99) time.sleep(10)