diff options
-rw-r--r-- | gemato/cli.py | 2 | ||||
-rw-r--r-- | tests/test_recursiveloader.py | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gemato/cli.py b/gemato/cli.py index b90bbf8..49add27 100644 --- a/gemato/cli.py +++ b/gemato/cli.py @@ -173,7 +173,7 @@ def do_create(args, argp): start = timeit.default_timer() try: m = gemato.recursiveloader.ManifestRecursiveLoader( - p, **init_kwargs) + os.path.join(p, 'Manifest'), **init_kwargs) except gemato.exceptions.OpenPGPNoImplementation as e: logging.error(str(e)) return 1 diff --git a/tests/test_recursiveloader.py b/tests/test_recursiveloader.py index 8f0a830..cc4d3b9 100644 --- a/tests/test_recursiveloader.py +++ b/tests/test_recursiveloader.py @@ -2361,7 +2361,7 @@ class CreateNewManifestTest(TempDirTestCase): def test_cli(self): self.assertEqual( gemato.cli.main(['gemato', 'create', '--hashes=SHA256 SHA512', - self.path]), + self.dir]), 0) m2 = gemato.manifest.ManifestFile() @@ -2453,7 +2453,7 @@ class CreateNewManifestTest(TempDirTestCase): gemato.cli.main(['gemato', 'create', '--hashes=SHA256 SHA512', '--compress-watermark=0', - os.path.join(self.dir, 'Manifest')]), + self.dir]), 0) self.assertFalse(os.path.exists( os.path.join(self.dir, 'Manifest'))) @@ -2465,7 +2465,7 @@ class CreateNewManifestTest(TempDirTestCase): gemato.cli.main(['gemato', 'create', '--hashes=SHA256 SHA512', '--compress-watermark=4096', - os.path.join(self.dir, 'Manifest')]), + self.dir]), 0) self.assertFalse(os.path.exists( os.path.join(self.dir, 'Manifest.gz'))) @@ -2519,7 +2519,8 @@ class CreateNewCompressedManifestTest(TempDirTestCase): def test_cli(self): self.assertEqual( gemato.cli.main(['gemato', 'create', '--hashes=SHA256 SHA512', - self.path]), + '--compress-watermark=0', '--compress-format=gz', + self.dir]), 0) m2 = gemato.manifest.ManifestFile() |