]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use sudo to cleanup workspace
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 24 Sep 2018 18:02:49 +0000 (11:02 -0700)
committerNathan Cutler <ncutler@suse.com>
Fri, 5 Oct 2018 02:10:46 +0000 (04:10 +0200)
Files in scratch_tmp may not be owned by ubuntu.

Fixes: http://tracker.ceph.com/issues/36165
Introduced-by: de824f74dd8ac909e47335ccd53d7a085e388e41
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 1eaf78a75498d0f739b40bf310d036c851465fad)

qa/tasks/workunit.py

index 443a151c53dd1b45e9c1ad8b7979629bd3cc3ee4..655edf2ab98ed2dde6ce205cd6ce5af0ca11f855 100644 (file)
@@ -480,7 +480,7 @@ def _run_tests(ctx, refspec, role, tests, env, basedir,
                 )
     finally:
         log.info('Stopping %s on %s...', tests, role)
-        args=['rm', '-rf', '--', workunits_file, clonedir]
+        args=['sudo', 'rm', '-rf', '--', workunits_file, clonedir]
         if cleanup:
             log.info("and cleaning up scratch: {}".format(scratch_tmp))
             args.append(scratch_tmp)