mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-08 08:58:46 +03:00
tests: Update some tests to use OSTREE_REPO_MODE_ARCHIVE not ARCHIVE_Z2
The latter is deprecated now. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #1203 Approved by: cgwalters
This commit is contained in:
parent
df1d0a5fc6
commit
467fcff349
@ -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 @.... */
|
||||
|
@ -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 @.... */
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user