diff options
Diffstat (limited to 'tests/integration/workspace.py')
-rw-r--r-- | tests/integration/workspace.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/integration/workspace.py b/tests/integration/workspace.py index 102d053fc..321e1bea0 100644 --- a/tests/integration/workspace.py +++ b/tests/integration/workspace.py @@ -31,6 +31,21 @@ def test_workspace_mount(cli, tmpdir, datafiles): assert os.path.exists(os.path.join(cli.directory, 'workspace')) +@pytest.mark.integration +@pytest.mark.datafiles(DATA_DIR) +def test_workspace_commanddir(cli, tmpdir, datafiles): + project = os.path.join(datafiles.dirname, datafiles.basename) + workspace = os.path.join(cli.directory, 'workspace') + element_name = 'workspace/workspace-commanddir.bst' + + res = cli.run(project=project, args=['workspace', 'open', element_name, workspace]) + assert res.exit_code == 0 + + res = cli.run(project=project, args=['build', element_name]) + assert res.exit_code == 0 + + assert os.path.exists(os.path.join(cli.directory, 'workspace')) + assert os.path.exists(os.path.join(cli.directory, 'workspace', 'build')) @pytest.mark.integration @pytest.mark.datafiles(DATA_DIR) |