]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: improve and add commit ID to comment for context 58532/head
authorRishabh Dave <ridave@redhat.com>
Thu, 11 Jul 2024 07:25:04 +0000 (12:55 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 12 Jul 2024 04:57:46 +0000 (10:27 +0530)
The comment was unclear without looking at previous version of code.
Therefore improve comment a bit and add link to commit ID due to which
this comment was introduced to give future readers context.

Also, place the comment before the command arguments. This too adds the
context.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/workunit.py

index f6e55c48cd674e53ac1903073f4c5796ba037fdc..4fd82eaea9df17b6df587ddbd2d82a8e43eba812 100644 (file)
@@ -441,8 +441,10 @@ def _run_tests(ctx, refspec, role, tests, env, basedir,
                     remote.run(logger=log.getChild(role), args=args, timeout=(60*60))
     finally:
         log.info('Stopping %s on %s...', tests, role)
+        # N.B. unlike before, don't cleanup path under variable "scratch_tmp"
+        # here! If the mount is broken then rm will hang. For context, see
+        # commit d4b8f94cf8d95ebb277b550fc6ebc3468052a39c.
         args=['sudo', 'rm', '-rf', '--', workunits_file, clonedir]
-        # N.B. don't cleanup scratch_tmp! If the mount is broken then rm will hang.
         remote.run(
             logger=log.getChild(role),
             args=args,