]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add timeout to cleaning up workunit sandbox 24275/head
authorPatrick Donnelly <pdonnell@redhat.com>
Sun, 30 Sep 2018 00:37:12 +0000 (17:37 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 1 Oct 2018 01:12:19 +0000 (18:12 -0700)
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>
qa/tasks/workunit.py

index 79eb64e39a179a38031f876845567a090ad15d77..8c34aed2168b2e7bf1ec89d02468c11a1a33a61d 100644 (file)
@@ -410,7 +410,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]