]> 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)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 24 Sep 2018 18:02:49 +0000 (11:02 -0700)
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>
qa/tasks/workunit.py

index 9b02c1db77eb43f57290f3651da9cdb7fcc5e54a..1575d232eb2f930f8c1ec12993976207dadcc4a4 100644 (file)
@@ -410,7 +410,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)