]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add timeout to cleaning up workunit sandbox 24408/head
authorPatrick Donnelly <pdonnell@redhat.com>
Sun, 30 Sep 2018 00:37:12 +0000 (17:37 -0700)
committerNathan Cutler <ncutler@suse.com>
Fri, 5 Oct 2018 02:19:26 +0000 (04:19 +0200)
If there is a bug preventing rm from completing, the workunit will get stuck.

Fixes: http://tracker.ceph.com/issues/36184
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 3a10d74f3aa4901dd9edffc0061992073ae67085)

qa/tasks/workunit.py

index 71f272e3d08c894074380de47172a9fbdf0cd6dd..022ef5d0666724c76c1d47fd1b070b6889bf6a21 100644 (file)
@@ -480,7 +480,7 @@ def _run_tests(ctx, refspec, role, tests, env, basedir,
                 )
                 if cleanup:
                     args=['sudo', 'rm', '-rf', '--', scratch_tmp]
-                    remote.run(logger=log.getChild(role), args=args)
+                    remote.run(logger=log.getChild(role), args=args, timeout=(15*60))
     finally:
         log.info('Stopping %s on %s...', tests, role)
         args=['sudo', 'rm', '-rf', '--', workunits_file, clonedir]