mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-22 21:25:43 -05:00
integration_tests: adapt to pip installation
This commit is contained in:
parent
a193a3f6b6
commit
49bae9d1f9
1 changed files with 2 additions and 1 deletions
|
@ -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', '')
|
||||
|
|
Loading…
Add table
Reference in a new issue