tests: Update some tests to use OSTREE_REPO_MODE_ARCHIVE not ARCHIVE_Z2
authorPhilip Withnall <withnall@endlessm.com>
Fri, 22 Sep 2017 11:08:01 +0000 (12:08 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 28 Sep 2017 14:08:40 +0000 (14:08 +0000)
The latter is deprecated now.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1203
Approved by: cgwalters

tests/test-repo-finder-config.c
tests/test-repo-finder-mount.c
tests/test-repo.c

index c4a763e6f6ea5287c35108030d39c5df7a6c4a9f..b89aaee4d994047bc46a0b1f8a7e518e135a694d 100644 (file)
@@ -177,7 +177,7 @@ assert_create_remote (Fixture     *fixture,
   g_autoptr(OstreeRepo) repo = ostree_repo_new (repo_path);
   ostree_repo_set_collection_id (repo, collection_id, &error);
   g_assert_no_error (error);
-  ostree_repo_create (repo, OSTREE_REPO_MODE_ARCHIVE_Z2, NULL, &error);
+  ostree_repo_create (repo, OSTREE_REPO_MODE_ARCHIVE, NULL, &error);
   g_assert_no_error (error);
 
   /* Set up the refs from @.... */
index 7c5f9e9b8f7ebb060bcea6ee4f5173b097e2fc83..10b253f7f57c20662e4c58abc2433b80ec8a72ad 100644 (file)
@@ -182,7 +182,7 @@ assert_create_remote_va (Fixture *fixture,
   g_autoptr(GError) error = NULL;
 
   g_autoptr(OstreeRepo) repo = ostree_repo_new (repo_dir);
-  ostree_repo_create (repo, OSTREE_REPO_MODE_ARCHIVE_Z2, NULL, &error);
+  ostree_repo_create (repo, OSTREE_REPO_MODE_ARCHIVE, NULL, &error);
   g_assert_no_error (error);
 
   /* Set up the refs from @.... */
index 217ca23c121dba38de6268ca3b7f88e316191207..e327f602c3e67f0bb063fc5199c506f197b6290d 100644 (file)
@@ -67,7 +67,7 @@ test_repo_hash (Fixture       *fixture,
 {
   g_autoptr(GError) error = NULL;
   g_autoptr(OstreeRepo) repo1 = ostree_repo_create_at (fixture->tmpdir.fd, ".",
-                                                       OSTREE_REPO_MODE_ARCHIVE_Z2,
+                                                       OSTREE_REPO_MODE_ARCHIVE,
                                                        NULL,
                                                        NULL, &error);
   g_assert_no_error (error);
@@ -113,7 +113,7 @@ test_repo_equal (Fixture       *fixture,
   g_assert_no_error (error);
 
   g_autoptr(OstreeRepo) repo1 = ostree_repo_create_at (fixture->tmpdir.fd, "repo1",
-                                                       OSTREE_REPO_MODE_ARCHIVE_Z2,
+                                                       OSTREE_REPO_MODE_ARCHIVE,
                                                        NULL,
                                                        NULL, &error);
   g_assert_no_error (error);
@@ -123,7 +123,7 @@ test_repo_equal (Fixture       *fixture,
   g_assert_no_error (error);
 
   g_autoptr(OstreeRepo) repo2 = ostree_repo_create_at (fixture->tmpdir.fd, "repo2",
-                                                       OSTREE_REPO_MODE_ARCHIVE_Z2,
+                                                       OSTREE_REPO_MODE_ARCHIVE,
                                                        NULL,
                                                        NULL, &error);
   g_assert_no_error (error);