Phillip Smyth pushed to branch issue-642-Invalid_project.conf_seen_as_missing at BuildStream / buildstream
Commits:
-
f202e9f9
by knownexus at 2018-09-18T16:06:38Z
3 changed files:
- tests/format/project.py
- + tests/format/project/invalid-yaml/manual.bst
- + tests/format/project/invalid-yaml/project.conf
Changes:
... | ... | @@ -40,6 +40,13 @@ def test_invalid_project_name(cli, datafiles): |
40 | 40 |
result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.INVALID_SYMBOL_NAME)
|
41 | 41 |
|
42 | 42 |
|
43 |
+@pytest.mark.datafiles(os.path.join(DATA_DIR))
|
|
44 |
+def test_invalid_yaml(cli, datafiles):
|
|
45 |
+ project = os.path.join(datafiles.dirname, datafiles.basename, "invalid-yaml")
|
|
46 |
+ result = cli.run(project=project, args=['workspace', 'list'])
|
|
47 |
+ result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.INVALID_YAML)
|
|
48 |
+ |
|
49 |
+ |
|
43 | 50 |
@pytest.mark.datafiles(os.path.join(DATA_DIR))
|
44 | 51 |
def test_load_default_project(cli, datafiles):
|
45 | 52 |
project = os.path.join(datafiles.dirname, datafiles.basename, "default")
|
1 |
+kind: manual
|
1 |
+# Basic project configuration that doesnt override anything
|
|
2 |
+#
|
|
3 |
+ |
|
4 |
+name: pony [
|