nixpkgs/pkgs/tools/backup/duplicity/gnutar-in-test.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
823 B
Diff
Raw Normal View History

2021-07-11 12:00:00 +00:00
diff --git a/testing/functional/test_restart.py b/testing/functional/test_restart.py
index 6d972c82..e8435fd5 100644
--- a/testing/functional/test_restart.py
+++ b/testing/functional/test_restart.py
2021-07-11 12:00:00 +00:00
@@ -350,14 +350,7 @@ class RestartTestWithoutEncryption(RestartTest):
https://launchpad.net/bugs/929067
"""
2021-07-11 12:00:00 +00:00
- if platform.system().startswith(u'Linux'):
- tarcmd = u"tar"
- elif platform.system().startswith(u'Darwin'):
- tarcmd = u"gtar"
- elif platform.system().endswith(u'BSD'):
- tarcmd = u"gtar"
- else:
- raise Exception(u"Platform %s not supported by tar/gtar." % platform.platform())
+ tarcmd = u"tar"
2021-07-11 12:00:00 +00:00
# Intial normal backup
2021-07-11 12:00:00 +00:00
self.backup(u"full", u"{0}/testfiles/blocktartest".format(_runtest_dir))