[gnome-software/wip/improve-tests: 474/475] flatpak: Remove repo symlink before creating a new one in unit tests
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/improve-tests: 474/475] flatpak: Remove repo symlink before creating a new one in unit tests
- Date: Fri, 25 Jan 2019 16:27:52 +0000 (UTC)
commit fe3f767689820e98e42578f12901d911a7ff3368
Author: Joaquim Rocha <jrocha endlessm com>
Date: Mon May 14 14:43:07 2018 +0200
flatpak: Remove repo symlink before creating a new one in unit tests
Before creating the repo symlink in the self test's folder, we need to
make sure that any existing link is removed (as tests share the same
folder currently).
plugins/flatpak/gs-self-test.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/plugins/flatpak/gs-self-test.c b/plugins/flatpak/gs-self-test.c
index d3fdee02..ce5fba89 100644
--- a/plugins/flatpak/gs-self-test.c
+++ b/plugins/flatpak/gs-self-test.c
@@ -1522,6 +1522,7 @@ gs_plugins_flatpak_runtime_extension_func (GsPluginLoader *plugin_loader)
}
/* add indirection so we can switch this after install */
+ unlink ("/var/tmp/self-test/repo");
g_assert_cmpint (symlink (repodir1_fn, "/var/tmp/self-test/repo"), ==, 0);
/* add a remote */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]