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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user