From 521a7c1de02f736361bc88621028ee7e6ae6cf16 Mon Sep 17 00:00:00 2001 From: Yu-Cheng Chang Date: Tue, 27 Feb 2024 02:31:18 +0800 Subject: [PATCH] tests: Exit riscv_asmtest script with simulator status code (#891) It will be helpful to check if the instruction simulate well Change-Id: I5faa435fad79601682126ee7978d8444093df900 --- tests/gem5/asmtest/configs/riscv_asmtest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/gem5/asmtest/configs/riscv_asmtest.py b/tests/gem5/asmtest/configs/riscv_asmtest.py index d6582e4698..578dfaa976 100644 --- a/tests/gem5/asmtest/configs/riscv_asmtest.py +++ b/tests/gem5/asmtest/configs/riscv_asmtest.py @@ -32,6 +32,7 @@ gem5 while still being functinal. """ import argparse +import sys from gem5.components.boards.simple_board import SimpleBoard from gem5.components.cachehierarchies.classic.no_cache import NoCache @@ -119,3 +120,5 @@ print( simulator.get_current_tick(), simulator.get_last_exit_event_cause() ) ) + +sys.exit(simulator.get_last_exit_event_code())