diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-09-07 14:51:34 +0100 |
---|---|---|
committer | Tiago Gomes <tiago.avv@gmail.com> | 2018-09-14 15:43:47 +0000 |
commit | 4aa0dd0b7eb2d047900cbe5a38449ca1c2902946 (patch) | |
tree | 1133df61aa3c3938cb3568704bdaab7b247a4316 /tests | |
parent | ef846ced8135249a20237c9ec1a2eae5460f8282 (diff) | |
download | buildstream-4aa0dd0b7eb2d047900cbe5a38449ca1c2902946.tar.gz |
tests: avoid setting max-jobs
Setting "max-jobs" won't be allowed anymore in a following commit.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/manual.py | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/tests/integration/manual.py b/tests/integration/manual.py index e71ccdd79..241ea37a8 100644 --- a/tests/integration/manual.py +++ b/tests/integration/manual.py @@ -64,7 +64,7 @@ strip @pytest.mark.datafiles(DATA_DIR) -def test_manual_element_noparallel(cli, tmpdir, datafiles): +def test_manual_element_environment(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) checkout = os.path.join(cli.directory, 'checkout') element_path = os.path.join(project, 'elements') @@ -72,15 +72,11 @@ def test_manual_element_noparallel(cli, tmpdir, datafiles): create_manual_element(element_name, element_path, { 'install-commands': [ - "echo $MAKEFLAGS >> test", "echo $V >> test", "cp test %{install-root}" ] }, { - 'max-jobs': 2, - 'notparallel': True }, { - 'MAKEFLAGS': '-j%{max-jobs} -Wall', 'V': 2 }) @@ -93,13 +89,11 @@ def test_manual_element_noparallel(cli, tmpdir, datafiles): with open(os.path.join(checkout, 'test')) as f: text = f.read() - assert text == """-j1 -Wall -2 -""" + assert text == "2\n" @pytest.mark.datafiles(DATA_DIR) -def test_manual_element_environment(cli, tmpdir, datafiles): +def test_manual_element_noparallel(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) checkout = os.path.join(cli.directory, 'checkout') element_path = os.path.join(project, 'elements') @@ -112,7 +106,7 @@ def test_manual_element_environment(cli, tmpdir, datafiles): "cp test %{install-root}" ] }, { - 'max-jobs': 2 + 'notparallel': True }, { 'MAKEFLAGS': '-j%{max-jobs} -Wall', 'V': 2 @@ -127,6 +121,6 @@ def test_manual_element_environment(cli, tmpdir, datafiles): with open(os.path.join(checkout, 'test')) as f: text = f.read() - assert text == """-j2 -Wall + assert text == """-j1 -Wall 2 """ |