From c36a4d12aaf045cd20071bfa6666d63107535bf9 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Mon, 4 Sep 2023 22:25:42 -0700 Subject: [PATCH] tests: Replace print with testlib.log for PARSEC warn Using just a print was causing this warning to print even with the `-q` flag was passed. The `-q` flag sets the output to machine readable, which the warning statement is not. Change-Id: I139e2565dbc53aaee9027c0e003d34ba800a7ef4 --- .../test_gem5_library_examples.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py b/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py index b88862fc0d..0882fb0dfd 100644 --- a/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py +++ b/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py @@ -29,6 +29,7 @@ This runs simple tests to ensure the examples in `configs/example/gem5_library` still function. They simply check the simulation completed. """ from testlib import * +from testlib.log import * import re import os @@ -171,10 +172,11 @@ gem5_verify_config( length=constants.long_tag, ) -print( - "WARNING: PARSEC tests are disabled. This is due to our GitHub " +log.test_log.message( + "PARSEC tests are disabled. This is due to our GitHub " "Actions self-hosted runners only having 60GB of disk space. The " - "PARSEC Disk image is too big to use." + "PARSEC Disk image is too big to use.", + level=LogLevel.Warn, ) # 'False' is used to disable the tests. if False: # os.access("/dev/kvm", mode=os.R_OK | os.W_OK):