val_path = '/var/log/ceph/valgrind'.format(tdir=testdir)
if '--tool=memcheck' in v or '--tool=helgrind' in v:
extra_args = [
- 'chdir-coredump',
+ 'cd', testdir,
+ run.Raw('&&'),
'valgrind',
'--num-callers=50',
'--suppressions=valgrind.supp',
]
else:
extra_args = [
- 'chdir-coredump',
+ 'cd', testdir,
+ run.Raw('&&'),
'valgrind',
'--suppressions=valgrind.supp',
'--log-file={vdir}/{n}.log'.format(vdir=val_path, n=name)
@contextlib.contextmanager
def ship_utilities(ctx, config):
assert config is None
- FILES = ['daemon-helper', 'adjust-ulimits', 'chdir-coredump',
- 'valgrind.supp', 'kcon_most']
+ FILES = ['daemon-helper', 'adjust-ulimits', 'valgrind.supp', 'kcon_most']
destdir = '/usr/local/bin'
for filename in FILES:
log.info('Shipping %r...', filename)
+++ /dev/null
-#!/bin/sh
-set -e
-
-testdir=$(readlink -e $(dirname $0))
-# valgrind only dumps to cwd, so cwd there...
-cd ${testdir}/archive/coredump
-
-exec "$@"