[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Rdiff-backup-commits] Changes to rdiff-backup/testing/commontest.py
From: |
Ben Escoto |
Subject: |
[Rdiff-backup-commits] Changes to rdiff-backup/testing/commontest.py |
Date: |
Sun, 30 Oct 2005 23:53:34 -0500 |
Index: rdiff-backup/testing/commontest.py
diff -u rdiff-backup/testing/commontest.py:1.34
rdiff-backup/testing/commontest.py:1.35
--- rdiff-backup/testing/commontest.py:1.34 Tue Oct 25 01:57:12 2005
+++ rdiff-backup/testing/commontest.py Mon Oct 31 04:53:31 2005
@@ -40,7 +40,8 @@
return rp
def rdiff_backup(source_local, dest_local, src_dir, dest_dir,
- current_time = None, extra_options = ""):
+ current_time = None, extra_options = "",
+ check_return_val = 1):
"""Run rdiff-backup with the given options
source_local and dest_local are boolean values. If either is
@@ -70,7 +71,9 @@
cmdargs.extend([src_dir, dest_dir])
cmdline = " ".join(cmdargs)
print "Executing: ", cmdline
- assert not os.system(cmdline)
+ ret_val = os.system(cmdline)
+ if check_return_val: assert not ret_val, ret_val
+ return ret_val
def InternalBackup(source_local, dest_local, src_dir, dest_dir,
current_time = None, eas = None, acls =
None):