diff options
Diffstat (limited to 'tests/sandboxes/missing-command.py')
-rw-r--r-- | tests/sandboxes/missing-command.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/sandboxes/missing-command.py b/tests/sandboxes/missing-command.py new file mode 100644 index 000000000..8f210bcec --- /dev/null +++ b/tests/sandboxes/missing-command.py @@ -0,0 +1,19 @@ +import os +import pytest + +from buildstream._exceptions import ErrorDomain + +from tests.testutils import cli + + +DATA_DIR = os.path.join( + os.path.dirname(os.path.realpath(__file__)), + "missing-command" +) + + +@pytest.mark.datafiles(DATA_DIR) +def test_missing_command(cli, tmpdir, datafiles): + project = os.path.join(datafiles.dirname, datafiles.basename) + result = cli.run(project=project, args=['build', 'no-runtime.bst']) + result.assert_task_error(ErrorDomain.SANDBOX, 'missing-command') |