stdlib: Change resource compatibility warning (#91)
* stdlib: Change resource compatibility warning If the gem5 version is "develop", the warning will not be thrown. Change-Id: Id2be1c4323c6ca06c5503c2885c1608f8d119420 * stdlib: Change resource compatibility warning If the gem5 version is "develop", the warning will not be thrown. Change-Id: Id2be1c4323c6ca06c5503c2885c1608f8d119420 * tests: Edit obtain_resources warning test Since we are editing the warning message for the develop branch, the test removes the warning message as well. Change-Id: I90882340188360bb3435344cdc14b324412c6c0e --------- Co-authored-by: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
@@ -285,19 +285,21 @@ class ClientWrapper:
|
||||
return False
|
||||
if (
|
||||
gem5_version
|
||||
and not gem5_version.upper().startswith("DEVELOP")
|
||||
and not self._get_resources_compatible_with_gem5_version(
|
||||
[resource], gem5_version=gem5_version
|
||||
)
|
||||
):
|
||||
warn(
|
||||
f"Resource {resource['id']} with version "
|
||||
f"{resource['resource_version']} is not known to be compatible"
|
||||
f" with gem5 version {gem5_version}. "
|
||||
"This may cause problems with your simulation. "
|
||||
"This resource's compatibility "
|
||||
"with different gem5 versions can be found here: "
|
||||
"https://resources.gem5.org"
|
||||
f"/resources/{resource['id']}/versions"
|
||||
)
|
||||
if not gem5_version.upper().startswith("DEVELOP"):
|
||||
warn(
|
||||
f"Resource {resource['id']} with version "
|
||||
f"{resource['resource_version']} is not known to be compatible"
|
||||
f" with gem5 version {gem5_version}. "
|
||||
"This may cause problems with your simulation. "
|
||||
"This resource's compatibility "
|
||||
"with different gem5 versions can be found here: "
|
||||
"https://resources.gem5.org"
|
||||
f"/resources/{resource['id']}/versions"
|
||||
)
|
||||
return False
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user