]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
worker: Don't log incorrect teuthology sha1 1741/head
authorZack Cerza <zack@redhat.com>
Thu, 14 Apr 2022 21:49:37 +0000 (15:49 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 14 Apr 2022 21:50:50 +0000 (15:50 -0600)
If teuthology_path is set, we don't fetch a separate copy of the repo.
In that case, the sha1 logged here may be incorrect.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/worker.py

index be5d6c6501fe57c707881af47c063316c3b0bd4c..5e5dfbeb317b0a65f8ec5d0f2b3fcf6069ada664 100644 (file)
@@ -160,7 +160,8 @@ def prep_job(job_config, log_file_path, archive_dir):
                 dict(status='dead', failure_reason=reason)
             )
             raise SkipJob()
-        log.info('Using teuthology sha1 %s', teuthology_sha1)
+        if teuth_config.teuthology_path is None:
+            log.info('Using teuthology sha1 %s', teuthology_sha1)
 
     try:
         if teuth_config.teuthology_path is not None: