diff options
author | William Salmon <will.salmon@codethink.co.uk> | 2019-07-24 10:09:30 +0100 |
---|---|---|
committer | William Salmon <will.salmon@codethink.co.uk> | 2019-07-25 13:57:18 +0100 |
commit | b54c8cb07ca257be79940ffa70853bf75d2c287c (patch) | |
tree | ae87e0d7aaed9e3cbab21c9ba35e3b59eef5d904 | |
parent | 91140a0360afb850aab529bd8375220d2e44c28f (diff) | |
download | buildstream-b54c8cb07ca257be79940ffa70853bf75d2c287c.tar.gz |
Mark xfail test that only fail in CI
-rw-r--r-- | tests/examples/autotools.py | 2 | ||||
-rw-r--r-- | tests/examples/developing.py | 4 | ||||
-rw-r--r-- | tests/examples/integration-commands.py | 4 | ||||
-rw-r--r-- | tests/examples/junctions.py | 4 | ||||
-rw-r--r-- | tests/examples/running-commands.py | 4 | ||||
-rw-r--r-- | tests/integration/artifact.py | 2 | ||||
-rw-r--r-- | tests/integration/autotools.py | 4 | ||||
-rw-r--r-- | tests/integration/cachedfail.py | 2 | ||||
-rw-r--r-- | tests/integration/cmake.py | 4 | ||||
-rw-r--r-- | tests/integration/compose.py | 2 | ||||
-rw-r--r-- | tests/integration/manual.py | 8 | ||||
-rw-r--r-- | tests/integration/messages.py | 2 | ||||
-rw-r--r-- | tests/integration/pip_element.py | 6 | ||||
-rw-r--r-- | tests/integration/pip_source.py | 2 | ||||
-rw-r--r-- | tests/integration/pullbuildtrees.py | 2 | ||||
-rw-r--r-- | tests/integration/script.py | 12 | ||||
-rw-r--r-- | tests/integration/shell.py | 16 | ||||
-rw-r--r-- | tests/integration/shellbuildtrees.py | 20 | ||||
-rw-r--r-- | tests/integration/sockets.py | 4 | ||||
-rw-r--r-- | tests/integration/source-determinism.py | 2 | ||||
-rw-r--r-- | tests/integration/stack.py | 2 | ||||
-rw-r--r-- | tests/integration/symlinks.py | 8 |
22 files changed, 113 insertions, 3 deletions
diff --git a/tests/examples/autotools.py b/tests/examples/autotools.py index ecd140718..e55f33493 100644 --- a/tests/examples/autotools.py +++ b/tests/examples/autotools.py @@ -20,6 +20,8 @@ DATA_DIR = os.path.join( reason='Examples are written for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason='Only available on linux with sandbox') @pytest.mark.skipif(HAVE_SANDBOX == 'chroot', reason='This test is not meant to work with chroot sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI @pytest.mark.datafiles(DATA_DIR) def test_autotools_build(cli, datafiles): project = str(datafiles) diff --git a/tests/examples/developing.py b/tests/examples/developing.py index 2f53c8a33..58416414e 100644 --- a/tests/examples/developing.py +++ b/tests/examples/developing.py @@ -21,6 +21,8 @@ DATA_DIR = os.path.join( reason='Examples are written for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason='Only available on linux with SANDBOX') @pytest.mark.skipif(HAVE_SANDBOX == 'chroot', reason='This is not meant to work with chroot') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI @pytest.mark.datafiles(DATA_DIR) def test_autotools_build(cli, datafiles): project = str(datafiles) @@ -43,6 +45,8 @@ def test_autotools_build(cli, datafiles): reason='Examples are written for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason='Only available on linux with SANDBOX') @pytest.mark.skipif(HAVE_SANDBOX == 'chroot', reason='This is not meant to work with chroot') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI @pytest.mark.datafiles(DATA_DIR) def test_run_unmodified_hello(cli, datafiles): project = str(datafiles) diff --git a/tests/examples/integration-commands.py b/tests/examples/integration-commands.py index 1ed888b5d..146ccdb80 100644 --- a/tests/examples/integration-commands.py +++ b/tests/examples/integration-commands.py @@ -18,6 +18,8 @@ DATA_DIR = os.path.join( reason='Examples are written for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason='Only available on linux with sandbox') @pytest.mark.skipif(HAVE_SANDBOX == 'chroot', reason='This test is not meant to work with chroot sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI @pytest.mark.datafiles(DATA_DIR) def test_integration_commands_build(cli, datafiles): project = str(datafiles) @@ -31,6 +33,8 @@ def test_integration_commands_build(cli, datafiles): reason='Examples are written for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason='Only available on linux with sandbox') @pytest.mark.skipif(HAVE_SANDBOX == 'chroot', reason='This test is not meant to work with chroot sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI @pytest.mark.datafiles(DATA_DIR) def test_integration_commands_run(cli, datafiles): project = str(datafiles) diff --git a/tests/examples/junctions.py b/tests/examples/junctions.py index 18bf4da4f..b77fcba8a 100644 --- a/tests/examples/junctions.py +++ b/tests/examples/junctions.py @@ -19,6 +19,8 @@ DATA_DIR = os.path.join( reason='Examples are written for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason='Only available on linux with bubblewrap') @pytest.mark.skipif(HAVE_SANDBOX == 'chroot', reason='This test is not meant to work with chroot sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI @pytest.mark.datafiles(DATA_DIR) def test_build(cli, datafiles): project = str(datafiles) @@ -32,6 +34,8 @@ def test_build(cli, datafiles): reason='Examples are written for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason='Only available on linux with bubblewrap') @pytest.mark.skipif(HAVE_SANDBOX == 'chroot', reason='This test is not meant to work with chroot sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI @pytest.mark.datafiles(DATA_DIR) def test_shell_call_hello(cli, datafiles): project = str(datafiles) diff --git a/tests/examples/running-commands.py b/tests/examples/running-commands.py index 1c419d524..ce81da0c8 100644 --- a/tests/examples/running-commands.py +++ b/tests/examples/running-commands.py @@ -19,6 +19,8 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason='Only available on linux with sandbox') @pytest.mark.skipif(HAVE_SANDBOX == 'chroot', reason='This test is not meant to work with chroot sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_running_commands_build(cli, datafiles): project = str(datafiles) @@ -31,6 +33,8 @@ def test_running_commands_build(cli, datafiles): reason='Examples are written for x86-64') @pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason='Only available on linux with sandbox') @pytest.mark.skipif(HAVE_SANDBOX == 'chroot', reason='This test is not meant to work with chroot sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI @pytest.mark.datafiles(DATA_DIR) def test_running_commands_run(cli, datafiles): project = str(datafiles) diff --git a/tests/integration/artifact.py b/tests/integration/artifact.py index 4180bf6fd..6ad0f8477 100644 --- a/tests/integration/artifact.py +++ b/tests/integration/artifact.py @@ -49,6 +49,8 @@ DATA_DIR = os.path.join( # Dse this really need a sandbox? @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_cache_buildtrees(cli, tmpdir, datafiles): project = str(datafiles) element_name = 'autotools/amhello.bst' diff --git a/tests/integration/autotools.py b/tests/integration/autotools.py index c985e8e6c..250ab90d1 100644 --- a/tests/integration/autotools.py +++ b/tests/integration/autotools.py @@ -22,6 +22,8 @@ DATA_DIR = os.path.join( # amhello project for this. @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_autotools_build(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -66,6 +68,8 @@ def test_autotools_confroot_build(cli, datafiles): # Test running an executable built with autotools @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_autotools_run(cli, datafiles): project = str(datafiles) element_name = 'autotools/amhello.bst' diff --git a/tests/integration/cachedfail.py b/tests/integration/cachedfail.py index e3b5b2796..4a469e21a 100644 --- a/tests/integration/cachedfail.py +++ b/tests/integration/cachedfail.py @@ -39,6 +39,8 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_build_checkout_cached_fail(cli, datafiles): project = str(datafiles) element_path = os.path.join(project, 'elements', 'element.bst') diff --git a/tests/integration/cmake.py b/tests/integration/cmake.py index 0fe91ed6d..3cb56ab5c 100644 --- a/tests/integration/cmake.py +++ b/tests/integration/cmake.py @@ -20,6 +20,8 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_cmake_build(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -53,6 +55,8 @@ def test_cmake_confroot_build(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_cmake_run(cli, datafiles): project = str(datafiles) element_name = 'cmake/cmakehello.bst' diff --git a/tests/integration/compose.py b/tests/integration/compose.py index 3562ed94b..dc8f4f858 100644 --- a/tests/integration/compose.py +++ b/tests/integration/compose.py @@ -80,6 +80,8 @@ def create_compose_element(name, path, config=None): '/usr/share/doc/amhello/README']) ]) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_compose_include(cli, datafiles, include_domains, exclude_domains, expected): project = str(datafiles) diff --git a/tests/integration/manual.py b/tests/integration/manual.py index 2ac7f74d0..bcfcaaf41 100644 --- a/tests/integration/manual.py +++ b/tests/integration/manual.py @@ -36,6 +36,8 @@ def create_manual_element(name, path, config, variables, environment): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_manual_element(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -70,6 +72,8 @@ strip @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_manual_element_environment(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -100,6 +104,8 @@ def test_manual_element_environment(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_manual_element_noparallel(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -135,6 +141,8 @@ def test_manual_element_noparallel(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_manual_element_logging(cli, datafiles): project = str(datafiles) element_path = os.path.join(project, 'elements') diff --git a/tests/integration/messages.py b/tests/integration/messages.py index 42725fc5b..0313a6347 100644 --- a/tests/integration/messages.py +++ b/tests/integration/messages.py @@ -41,6 +41,8 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_disable_message_lines(cli, datafiles): project = str(datafiles) element_path = os.path.join(project, 'elements') diff --git a/tests/integration/pip_element.py b/tests/integration/pip_element.py index da0badcb3..85a922c00 100644 --- a/tests/integration/pip_element.py +++ b/tests/integration/pip_element.py @@ -25,6 +25,8 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_pip_build(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -62,6 +64,8 @@ def test_pip_build(cli, datafiles): # Test running an executable built with pip @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_pip_run(cli, datafiles): # Create and build our test element test_pip_build(cli, datafiles) @@ -76,6 +80,8 @@ def test_pip_run(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_pip_element_should_install_pip_deps(cli, datafiles, setup_pypi_repo): project = str(datafiles) elements_path = os.path.join(project, 'elements') diff --git a/tests/integration/pip_source.py b/tests/integration/pip_source.py index c221910a6..c8f997800 100644 --- a/tests/integration/pip_source.py +++ b/tests/integration/pip_source.py @@ -140,6 +140,8 @@ def test_pip_source_import_requirements_files(cli, datafiles, setup_pypi_repo): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_pip_source_build(cli, datafiles, setup_pypi_repo): project = str(datafiles) element_path = os.path.join(project, 'elements') diff --git a/tests/integration/pullbuildtrees.py b/tests/integration/pullbuildtrees.py index af9186b1b..437b3e0a5 100644 --- a/tests/integration/pullbuildtrees.py +++ b/tests/integration/pullbuildtrees.py @@ -37,6 +37,8 @@ def default_state(cli, tmpdir, share): @pytest.mark.integration @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_pullbuildtrees(cli2, tmpdir, datafiles): project = str(datafiles) element_name = 'autotools/amhello.bst' diff --git a/tests/integration/script.py b/tests/integration/script.py index dc893f679..04e70af32 100644 --- a/tests/integration/script.py +++ b/tests/integration/script.py @@ -40,6 +40,8 @@ def create_script_element(name, path, config=None, variables=None): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_script(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -68,6 +70,8 @@ def test_script(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_script_root(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -156,6 +160,8 @@ def test_script_cwd(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_script_layout(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -175,6 +181,8 @@ def test_script_layout(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_regression_cache_corruption(cli, datafiles): project = str(datafiles) checkout_original = os.path.join(cli.directory, 'checkout-original') @@ -205,6 +213,8 @@ def test_regression_cache_corruption(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_regression_tmpdir(cli, datafiles): project = str(datafiles) element_name = 'script/tmpdir.bst' @@ -215,6 +225,8 @@ def test_regression_tmpdir(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_regression_cache_corruption_2(cli, datafiles): project = str(datafiles) checkout_original = os.path.join(cli.directory, 'checkout-original') diff --git a/tests/integration/shell.py b/tests/integration/shell.py index b0eca2471..8ea5d5e69 100644 --- a/tests/integration/shell.py +++ b/tests/integration/shell.py @@ -57,6 +57,8 @@ def execute_shell(cli, project, command, *, config=None, mount=None, element='ba # executable @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_shell(cli, datafiles): project = str(datafiles) @@ -68,6 +70,8 @@ def test_shell(cli, datafiles): # Test running an executable directly @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_executable(cli, datafiles): project = str(datafiles) @@ -81,7 +85,7 @@ def test_executable(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') @pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') -# This test seems to fail or pass depending on if this file is run or the hole test suite +# Not stricked xfail as only fails in CI def test_env_assign(cli, datafiles, animal): project = str(datafiles) expected = animal + '\n' @@ -103,7 +107,7 @@ def test_env_assign(cli, datafiles, animal): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') @pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') -# This test seems to fail or pass depending on if this file is run or the hole test suite +# Not stricked xfail as only fails in CI def test_env_assign_expand_host_environ(cli, datafiles, animal): project = str(datafiles) expected = 'The animal is: {}\n'.format(animal) @@ -128,7 +132,7 @@ def test_env_assign_expand_host_environ(cli, datafiles, animal): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') @pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') -# This test seems to faili or pass depending on if this file is run or the hole test suite +# Not stricked xfail as only fails in CI def test_env_assign_isolated(cli, datafiles, animal): project = str(datafiles) result = execute_shell(cli, project, ['/bin/sh', '-c', 'echo ${ANIMAL}'], isolate=True, config={ @@ -147,6 +151,8 @@ def test_env_assign_isolated(cli, datafiles, animal): # /bin/sh) @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_no_shell(cli, datafiles): project = str(datafiles) element_path = os.path.join(project, 'elements') @@ -366,6 +372,8 @@ def test_sysroot(cli, tmpdir, datafiles): # Test system integration commands can access devices in /dev @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_integration_devices(cli, datafiles): project = str(datafiles) element_name = 'integration.bst' @@ -413,6 +421,8 @@ def test_integration_external_workspace(cli, tmpdir_factory, datafiles, build_sh @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_integration_partial_artifact(cli, datafiles, tmpdir, integration_cache): project = str(datafiles) diff --git a/tests/integration/shellbuildtrees.py b/tests/integration/shellbuildtrees.py index 81a279479..4f4d8b0b5 100644 --- a/tests/integration/shellbuildtrees.py +++ b/tests/integration/shellbuildtrees.py @@ -24,6 +24,8 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_buildtree_staged(cli_integration, datafiles): # We can only test the non interacitve case # The non interactive case defaults to not using buildtrees @@ -42,6 +44,8 @@ def test_buildtree_staged(cli_integration, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_buildtree_staged_forced_true(cli_integration, datafiles): # Test that if we ask for a build tree it is there. project = str(datafiles) @@ -59,6 +63,8 @@ def test_buildtree_staged_forced_true(cli_integration, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_buildtree_staged_warn_empty_cached(cli_integration, tmpdir, datafiles): # Test that if we stage a cached and empty buildtree, we warn the user. project = str(datafiles) @@ -90,6 +96,8 @@ def test_buildtree_staged_warn_empty_cached(cli_integration, tmpdir, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_buildtree_staged_if_available(cli_integration, datafiles): # Test that a build tree can be correctly detected. project = str(datafiles) @@ -107,6 +115,8 @@ def test_buildtree_staged_if_available(cli_integration, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_buildtree_staged_forced_false(cli_integration, datafiles): # Test that if we ask not to have a build tree it is not there project = str(datafiles) @@ -125,6 +135,8 @@ def test_buildtree_staged_forced_false(cli_integration, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_buildtree_from_failure(cli_integration, datafiles): # Test that we can use a build tree after a failure project = str(datafiles) @@ -167,6 +179,8 @@ def test_buildtree_from_failure_option_never(cli_integration, tmpdir, datafiles) @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_buildtree_from_failure_option_always(cli_integration, tmpdir, datafiles): project = str(datafiles) @@ -194,6 +208,8 @@ def test_buildtree_from_failure_option_always(cli_integration, tmpdir, datafiles # This is to roughly simulate remote execution @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_buildtree_pulled(cli, tmpdir, datafiles): project = str(datafiles) element_name = 'build-shell/buildtree.bst' @@ -227,6 +243,8 @@ def test_buildtree_pulled(cli, tmpdir, datafiles): # This test checks for correct behaviour if a buildtree is not present in the local cache. @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_buildtree_options(cli, tmpdir, datafiles): project = str(datafiles) element_name = 'build-shell/buildtree.bst' @@ -310,6 +328,8 @@ def test_buildtree_options(cli, tmpdir, datafiles): # Tests running pull and pull-buildtree options at the same time. @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_pull_buildtree_pulled(cli, tmpdir, datafiles): project = str(datafiles) element_name = 'build-shell/buildtree.bst' diff --git a/tests/integration/sockets.py b/tests/integration/sockets.py index 763238baf..246e48595 100644 --- a/tests/integration/sockets.py +++ b/tests/integration/sockets.py @@ -18,6 +18,8 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_builddir_socket_ignored(cli, datafiles): project = str(datafiles) element_name = 'sockets/make-builddir-socket.bst' @@ -28,6 +30,8 @@ def test_builddir_socket_ignored(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_install_root_socket_ignored(cli, datafiles): project = str(datafiles) element_name = 'sockets/make-install-root-socket.bst' diff --git a/tests/integration/source-determinism.py b/tests/integration/source-determinism.py index 70c4b79de..0ac954f4f 100644 --- a/tests/integration/source-determinism.py +++ b/tests/integration/source-determinism.py @@ -32,6 +32,8 @@ def create_test_directory(*path, mode=0o644): @pytest.mark.integration @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_deterministic_source_local(cli, tmpdir, datafiles): """Only user rights should be considered for local source. """ diff --git a/tests/integration/stack.py b/tests/integration/stack.py index 9d6b38345..c6eaba3c4 100644 --- a/tests/integration/stack.py +++ b/tests/integration/stack.py @@ -19,6 +19,8 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_stack(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') diff --git a/tests/integration/symlinks.py b/tests/integration/symlinks.py index 85bbc53fd..c62bad586 100644 --- a/tests/integration/symlinks.py +++ b/tests/integration/symlinks.py @@ -19,6 +19,8 @@ DATA_DIR = os.path.join( @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_absolute_symlinks(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -40,6 +42,8 @@ def test_absolute_symlinks(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_disallow_overlaps_inside_symlink_with_dangling_target(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -55,6 +59,8 @@ def test_disallow_overlaps_inside_symlink_with_dangling_target(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_detect_symlink_overlaps_pointing_outside_sandbox(cli, datafiles): project = str(datafiles) checkout = os.path.join(cli.directory, 'checkout') @@ -74,6 +80,8 @@ def test_detect_symlink_overlaps_pointing_outside_sandbox(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') +@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') +# Not stricked xfail as only fails in CI def test_symlink_in_sandbox_path(cli, datafiles): project = str(datafiles) element_name = 'symlinks/link-on-path-use.bst' |