parameters: (self, cwd: str)
return_statement: return True
docstring: Checks to make sure all of the artifacts are up to date
  
          This should happen just before running gem5. This function will return
          False if the artifacts don't check and true if they are all the same.
          For the git repos, this checks the git hash, for binary artifacts this
          checks the md5 hash.
docstring_summary: Checks to make sure all of the artifacts are up to date
docstring_tokens: Checks to make sure all of the artifacts are up to date
function: def checkArtifacts(self, cwd: str) -> bool:
          """Checks to make sure all of the artifacts are up to date
  
          This should happen just before running gem5. This function will return
          False if the artifacts don't check and true if they are all the same.
          For the git repos, this checks the git hash, for binary artifacts this
          checks the md5 hash.
          """
          for v in self.artifacts:
              if v.type == "git repo":
                  new = artifact.artifact.getGit(cwd / v.path)["hash"]
                  old = v.git["hash"]
              else:
                  new = artifact.artifact.getHash(cwd / v.path)
                  old = v.hash
  
              if new != old:
                  self.status = f"Failed artifact check for {cwd / v.path}"
                  return False
  
          return True
function_tokens: def checkArtifacts ( self , cwd : str ) -> bool : for v in self . artifacts : if v . type == "git repo" : new = artifact . artifact . getGit ( cwd / v . path ) [ "hash" ] old = v . git [ "hash" ] else : new = artifact . artifact . getHash ( cwd / v . path ) old = v . hash if new != old : self . status = f"Failed artifact check for {cwd / v.path}" return False return True