]> arthur.barton.de Git - bup.git/commitdiff
test-prune-older: report cmd, not argv in exception
authorRob Browning <rlb@defaultvalue.org>
Tue, 13 Jun 2017 07:18:02 +0000 (02:18 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 18 Jun 2017 19:57:12 +0000 (14:57 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-prune-older

index c54865c95bd4ea7b80ca540981508ca170a4597f..4ebc94cabf0e4771a563f05f8c240ceb7372e848 100755 (executable)
@@ -50,7 +50,7 @@ def exo(cmd, stdin=None, stdout=True, stderr=False, shell=False, check=True):
     out, err = p.communicate()
     if check and p.returncode != 0:
         raise Exception('subprocess %r failed with status %d, stderr: %r'
-                        % (' '.join(argv), p.returncode, err))
+                        % (' '.join(map(quote, cmd)), p.returncode, err))
     return out, err, p
 
 def bup(*args):