From 68fed7b5e1a2c976c23a4051e59181e5a5a2fece Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Thu, 23 Mar 2023 12:55:32 -0700 Subject: [PATCH] tests: Fix Replacement Policy Tests The script run by 'test_replacement_policies.py' was named 'run_replacement_policy_test.py'. This caused the TestLib framework to fail as any file with the string "test" in it was attempted to parse as a test. As this is a gem5 Python config file, this caused a failure. To fix this the file was renamed 'run_replacement_policy.py'. Change-Id: I6f0a09e4f5056a9c94e258c9aea26bf277206733 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69237 Reviewed-by: Matt Sinclair Tested-by: kokoro Maintainer: Matt Sinclair --- ...run_replacement_policy_test.py => run_replacement_policy.py} | 0 tests/gem5/replacement-policies/test_replacement_policies.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/gem5/replacement-policies/{run_replacement_policy_test.py => run_replacement_policy.py} (100%) diff --git a/tests/gem5/replacement-policies/run_replacement_policy_test.py b/tests/gem5/replacement-policies/run_replacement_policy.py similarity index 100% rename from tests/gem5/replacement-policies/run_replacement_policy_test.py rename to tests/gem5/replacement-policies/run_replacement_policy.py diff --git a/tests/gem5/replacement-policies/test_replacement_policies.py b/tests/gem5/replacement-policies/test_replacement_policies.py index 7b00e10429..4c74f72a2a 100644 --- a/tests/gem5/replacement-policies/test_replacement_policies.py +++ b/tests/gem5/replacement-policies/test_replacement_policies.py @@ -45,7 +45,7 @@ def test_replacement_policy(config_name: str, config_path: str) -> None: "tests", "gem5", "replacement-policies", - "run_replacement_policy_test.py", + "run_replacement_policy.py", ), config_args=[config_name, config_path], valid_isas=(constants.null_tag,),