diff options
| author | Phaedrus Leeds <mwleeds@endlessos.org> | 2020-10-26 19:27:41 -0700 |
|---|---|---|
| committer | Phaedrus Leeds <mwleeds@endlessos.org> | 2020-10-26 19:27:41 -0700 |
| commit | 204abe33d835d1c7f0ce94b9cb846de74dd4945e (patch) | |
| tree | 37e8e983b7be0ec75ea0fc2c72568b2029599629 | |
| parent | 7d30de344c2065d95aa444b8a59ae0fb44a06929 (diff) | |
| download | flatpak-tweak-testlibrary-unused.tar.gz | |
testlibrary: Tweak one of the tests to avoid CLItweak-testlibrary-unused
It seems cleaner to use library API than the CLI here.
| -rw-r--r-- | tests/testlibrary.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/testlibrary.c b/tests/testlibrary.c index d200f6d6..1d5bde6d 100644 --- a/tests/testlibrary.c +++ b/tests/testlibrary.c @@ -4369,6 +4369,9 @@ test_installation_unused_refs_across_installations (void) g_assert_no_error (error); g_assert_nonnull (transaction); + /* We don't want the runtime pinned in this case */ + flatpak_transaction_set_disable_auto_pin (transaction, TRUE); + res = flatpak_transaction_add_install (transaction, "test-runtime-only-repo", runtime, NULL, &error); g_assert_no_error (error); g_assert_true (res); @@ -4378,12 +4381,6 @@ test_installation_unused_refs_across_installations (void) g_assert_true (res); g_clear_object (&transaction); - /* Undo the pinning that happened as a side effect of the install */ - const char *argv[] = { "flatpak", "pin", "--system", "--remove", runtime, NULL }; - run_test_subprocess ((char **) argv, RUN_TEST_SUBPROCESS_DEFAULT); - flatpak_installation_drop_caches (system_inst, NULL, &error); - g_assert_no_error (error); - /* The runtime should show as unused */ refs = flatpak_installation_list_unused_refs (system_inst, NULL, NULL, &error); g_assert_nonnull (refs); |
