diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-09-11 16:07:24 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2019-09-13 07:33:48 +0000 |
commit | 5a778ca352f2e1e5d4837e826656107db26cff34 (patch) | |
tree | cb318f0b4a41dc8f6b8ea24f92eed7d65012ef14 /tests/frontend | |
parent | c30993ebc677bc665425c8f6810628e1302a6f9e (diff) | |
download | buildstream-5a778ca352f2e1e5d4837e826656107db26cff34.tar.gz |
cli.py: Allow checkout to handle --deps all
source checkout supports --deps all, so we should be
consistent.
Additionally, a user may want to have build deps in a
potential chroot so you could rebuild any component.
Diffstat (limited to 'tests/frontend')
-rw-r--r-- | tests/frontend/buildcheckout.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py index c9a42239a..7044739a1 100644 --- a/tests/frontend/buildcheckout.py +++ b/tests/frontend/buildcheckout.py @@ -158,7 +158,7 @@ def test_build_invalid_filename_chars_dep(datafiles, cli): @pytest.mark.datafiles(DATA_DIR) -@pytest.mark.parametrize("deps", [("run"), ("none"), ("build")]) +@pytest.mark.parametrize("deps", [("run"), ("none"), ("build"), ("all")]) def test_build_checkout_deps(datafiles, cli, deps): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -187,14 +187,14 @@ def test_build_checkout_deps(datafiles, cli, deps): # Verify output of this element's build dependencies filename = os.path.join(checkout, 'usr', 'include', 'pony.h') - if deps == "build": + if deps in ["build", "all"]: assert os.path.exists(filename) else: assert not os.path.exists(filename) # Verify output of this element's runtime dependencies filename = os.path.join(checkout, 'usr', 'bin', 'hello') - if deps == "run": + if deps in ["run", "all"]: assert os.path.exists(filename) else: assert not os.path.exists(filename) |