ctx.summary = {}
+ ctx.config['tasks'].insert(0, {'internal.check_conflict': None})
+
from teuthology.run_tasks import run_tasks
try:
run_tasks(tasks=ctx.config['tasks'], ctx=ctx)
import contextlib
import logging
import os
-import gevent
import tarfile
from teuthology import misc as teuthology
log.info('Recording coverage for this run.')
flavor = 'gcov'
- log.info('Checking for old test directory...')
- processes = ctx.cluster.run(
- args=[
- 'test', '!', '-e', '/tmp/cephtest',
- ],
- wait=False,
- )
- failed = False
- for proc in processes:
- assert isinstance(proc.exitstatus, gevent.event.AsyncResult)
- try:
- proc.exitstatus.get()
- except run.CommandFailedError:
- log.error('Host %s has stale cephtest directory, check your lock and reboot to clean up.', proc.remote.shortname)
- failed = True
- if failed:
- raise RuntimeError('Stale jobs detected, aborting.')
-
coverage_dir = '/tmp/cephtest/archive/coverage'
log.info('Creating directories...')
run.wait(
--- /dev/null
+import gevent
+import logging
+
+from orchestra import run
+
+log = logging.getLogger(__name__)
+
+def check_conflict(ctx, config):
+ log.info('Checking for old test directory...')
+ processes = ctx.cluster.run(
+ args=[
+ 'test', '!', '-e', '/tmp/cephtest',
+ ],
+ wait=False,
+ )
+ failed = False
+ for proc in processes:
+ assert isinstance(proc.exitstatus, gevent.event.AsyncResult)
+ try:
+ proc.exitstatus.get()
+ except run.CommandFailedError:
+ log.error('Host %s has stale cephtest directory, check your lock and reboot to clean up.', proc.remote.shortname)
+ failed = True
+ if failed:
+ raise RuntimeError('Stale jobs detected, aborting.')