From 49bae9d1f93f287026cb84aae1f610ef49532881 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Sat, 24 Feb 2024 17:18:20 +0100 Subject: [PATCH] integration_tests: adapt to pip installation --- integration_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration_tests.py b/integration_tests.py index 67a073b..3d59a07 100644 --- a/integration_tests.py +++ b/integration_tests.py @@ -52,7 +52,8 @@ def test_config_load(ctx: click.Context): def test_packages_update(ctx: click.Context): pkgbuilds_path = config.get_path('pkgbuilds') - kbs_branch = git_get_branch(config.runtime.script_source_dir) + assert config.runtime.script_source_dir + kbs_branch = git_get_branch(os.path.join(config.runtime.script_source_dir, "../..")) # Gitlab CI integration: the CI checks out a detached commit, branch comes back empty. if not kbs_branch and os.environ.get('CI', 'false') == 'true': kbs_branch = os.environ.get('CI_COMMIT_BRANCH', '')