From e7d4e6900a60f5e66da932a3e8ed3799aa351144 Mon Sep 17 00:00:00 2001 From: Otavio Pontes Date: Mon, 18 Nov 2019 14:13:18 -0800 Subject: [PATCH] 3rd_party: Create 3rd_party dir on swupd_init() Signed-off-by: Otavio Pontes --- src/helpers.c | 2 +- test/functional/testlib.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers.c b/src/helpers.c index fb9902c8..10708050 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -229,7 +229,7 @@ int create_state_dirs(const char *state_dir_path) unsigned int i; char *dir; #define STATE_DIR_COUNT (sizeof(state_dirs) / sizeof(state_dirs[0])) - const char *state_dirs[] = { "delta", "staged", "download", "telemetry", "bundles" }; + const char *state_dirs[] = { "delta", "staged", "download", "telemetry", "bundles", "3rd_party" }; // check for existence if (ensure_root_owned_dir(state_dir_path)) { diff --git a/test/functional/testlib.bash b/test/functional/testlib.bash index 48c9747f..ce6886ab 100644 --- a/test/functional/testlib.bash +++ b/test/functional/testlib.bash @@ -1626,7 +1626,7 @@ create_test_environment() { # swupd_function # state files & dirs debug_msg "Creating a state dir" - sudo mkdir -p "$statedir"/{staged,download,delta,telemetry,bundles} + sudo mkdir -p "$statedir"/{staged,download,delta,telemetry,bundles,3rd_party} sudo chmod -R 0700 "$statedir" # export environment variables that are dependent of the test env