Skip to content

Commit

Permalink
tests: clone bitbake from GitHub mirror
Browse files Browse the repository at this point in the history
This mirror is much faster, especially when cloning from within the
GitHub Actions CI. By switching over using KAS_PREMIRRORS, we also test
the premirrors logic of kas. The example is also quite close to the real
world use case of replacing the official OE repos with the faster
mirrors on GitHub.

Signed-off-by: Felix Moessbauer <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
fmoessbauer authored and jan-kiszka committed Oct 21, 2024
1 parent 5f2d9e3 commit be8307b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_environment_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ def _test_env_section_export(monkeykas, tmpdir, bb_env_var, bb_repo):
shutil.copytree('tests/test_environment_variables', str(conf_dir))
monkeykas.chdir(conf_dir)
monkeykas.setenv('KAS_CLONE_DEPTH', '1')
monkeykas.setenv('KAS_PREMIRRORS', 'https://git\\.openembedded\\.org/ '
'https://github.com/openembedded/\n')

# Overwrite oe-init-build-env script
# BB_ENV_* filter variables are only exported by
Expand Down

0 comments on commit be8307b

Please sign in to comment.