diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-12-13 13:45:19 -0500 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-12-13 13:45:19 -0500 |
commit | e516e9802120cf33006bd1fb28a2ebf9d04cbfb9 (patch) | |
tree | a80d40dfe7620746191de626d3a39a982cc79d25 | |
parent | 3033f55d06aee5634802888aeebd3a7d0bd56e37 (diff) | |
download | buildstream-e516e9802120cf33006bd1fb28a2ebf9d04cbfb9.tar.gz |
integration-tests/lib.sh: Added bst_checkout()
This calls bst_with_flags checkout in a uniform way, we
use it for now to pass `--hardlinks` to all checkouts potentially
speeding up the test runs.
-rw-r--r-- | integration-tests/lib.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/integration-tests/lib.sh b/integration-tests/lib.sh index 1e4ce1c37..a77082c6d 100644 --- a/integration-tests/lib.sh +++ b/integration-tests/lib.sh @@ -112,6 +112,23 @@ bst_with_flags() { fi } +# bst_checkout +# +# Call bst checkout +# +# Args +# element_name ($1) - the element name to checkout +# directory ($2) - the checkout directory +bst_checkout() { + local element=$1 + local directory=$2 + + # Use --hardlinks option to speed things up, this + # is fine as long as we dont modify files in the checkout. + # + bst_with_flags checkout --hardlinks "${element}" "${directory}" +} + # report_results # # Args: |