]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
ceph: fix valgrind grep output parsing
authorSage Weil <sage@inktank.com>
Tue, 4 Jun 2013 16:07:53 +0000 (09:07 -0700)
committerSage Weil <sage@inktank.com>
Tue, 4 Jun 2013 16:07:53 +0000 (09:07 -0700)
When you pass a single file to zgrep you don't get the filename prefix,
which confuses the split line a few lines down.

teuthology/task/ceph.py

index e6b5871b14e63257cd699bd025aa9cfbf775022b..2412d6bbf75a8d85306ba892750e58d5f8272f9c 100644 (file)
@@ -194,6 +194,7 @@ def valgrind_post(ctx, config):
                     'zgrep',
                     '<kind>',
                     run.Raw('/var/log/ceph/valgrind/*'),
+                    '/dev/null', # include a second file so that we always get a filename prefix on the output
                     run.Raw('|'),
                     'sort',
                     run.Raw('|'),