1. 04 Apr, 2019 1 commit
  2. 27 Mar, 2019 1 commit
  3. 21 Mar, 2019 2 commits
    • Raoul Hidalgo Charman's avatar
      tests: Check get_unique_key isn't used before track · 8fb30a60
      Raoul Hidalgo Charman authored
      Part of a fix for !1124
      8fb30a60
    • Angelos Evripiotis's avatar
      tests: str(datafiles) instead of a longer thing · f2b15d86
      Angelos Evripiotis authored
      Replace some popular copypasta.
      
      This important-looking invocation:
      
          os.path.join(datafiles.dirname, datafiles.basename)
      
      is equivalent to this shorter invocation:
      
          project = str(datafiles)
      
      It seems like it's very popular copypasta, replace it with the shorter
      one thus:
      
          # Use 'gsed' or 'sed' etc. as appropriate for your system.
          git config --global alias.sub '!f() { git grep --name-only --null "$1" | gxargs --null gsed --in-place --expression "s/$1/$2/g" ; }; f'
          git sub 'os.path.join(datafiles.dirname, datafiles.basename)' 'str(datafiles)'
      f2b15d86
  4. 20 Mar, 2019 9 commits
  5. 14 Mar, 2019 7 commits
  6. 01 Mar, 2019 5 commits
  7. 11 Feb, 2019 1 commit
  8. 08 Feb, 2019 1 commit
    • Phil Dawson's avatar
      Expose basic api for testing external plugins. · b4d4c4f5
      Phil Dawson authored
      We want external plugins to be able to make use of the core testing utils.
      This commit exposes the basic utilities which are currently in use in
      bst-external plugins. If necessary, more utilities could be exposed in the
      future.
      
      Moves the following files from tests/testutils/ to
      buildstream/plugintestingutils/:
      o runcli.py
      o integration.py
      
      As part of this, this commit makes the following changes to runcli.py
      and integration.py:
      o runcli.py: Fix linting errors
      o runcli.py: Add user facing documentation
      o Integration.py: Add user facing documentation
      b4d4c4f5
  9. 24 Jan, 2019 1 commit
  10. 22 Jan, 2019 1 commit
    • James Ennis's avatar
      Mark 'old' checkout command as obsolete · fbd15939
      James Ennis authored
      This commit marks 'bst checkout' as a 'hidden' command. If used,
      the user will be prompted to use the new 'bst artifact checkout'
      command.
      
      All tests which used 'bst checkout' have been modified to use
      the new artifact sub-command.
      
      This partially solves #822.
      fbd15939
  11. 21 Jan, 2019 1 commit
    • richardmaw-codethink's avatar
      tests/sources/git.py: Skip tests that assume too new a git · 50165081
      richardmaw-codethink authored
      test_track_invalid_submodule depends on being able to remove a submodule
      by `git rm $submoduledir`, but old versions of git don't update .gitmodules
      so BuildStream still thinks there's a submodule present.
      
      For expediency the test is skipped rather than changed to manually remove
      the entry from .gitmodules if git hasn't done it,
      since in the common case git is new enough to do that itself.
      
      test_git_describe expects --first-parent to find another tag,
      but `bst track` will gracefully degrade if the option doesn't work
      so a different history will be retained with old versions of git.
      
      It's of marginal benefit to add additional cruft
      to test for different output on old versions of git that won't persist forever.
      50165081
  12. 16 Jan, 2019 2 commits
  13. 26 Dec, 2018 1 commit
  14. 20 Dec, 2018 1 commit
  15. 14 Dec, 2018 1 commit
    • Chandan Singh's avatar
      Introduce new "source" command group · 629a6e52
      Chandan Singh authored
      Following the message thread
      https://mail.gnome.org/archives/buildstream-list/2018-November/msg00106.html,
      implement a new command group called `source`. Move existing `track`,
      `fetch`, and the recently added `source-checkout` commands under this
      group.
      
      For `track` and `fetch`, this is a BREAKING change, as the old commands
      have been marked as obsolete. Using them will result in an error message
      that refers people to use the new versions, like `bst source fetch`
      instead of old `bst fetch`. `source-checkout` will now become
      `source checkout` (the dash has turned into a space), and is not a
      breaking change as it was added in the current development cycle.
      
      Note that the functionality to hide commands from help output was added
      only recently in Click, so the minimum version of Click that we now
      require is 7.0.
      
      Summary of changes:
      
      * _frontend/cli.py: Add `source` command group, mark previous versions
        as obsolete and hide them from the help output.
      * _frontend/complete.py: Fix completion for hidden commands.
      * setup.py: Bump Click minimum version to 7.0.
      * tests: Update to cope with the new command names.
      
      Fixes #814.
      629a6e52
  16. 11 Dec, 2018 1 commit
    • Valentin David's avatar
      Force updating tags when fetching git repository · f2fcc2f6
      Valentin David authored
      When using aliases there are multiple remotes used in the cache
      repository. When fetching, tags are not updated if the were previously
      fetched from a different remote. Commits that not in a branch and only
      tagged do not get fetched if the tag is not fetched.
      
      Fixes #812
      f2fcc2f6
  17. 06 Dec, 2018 4 commits