|
16 | 16 | # narrower case (E3, #699 item 2 -- see e2e 789), where the member is still |
17 | 17 | # described. Criteria: |
18 | 18 | # A. `emit --workspace --format json` over `good` and `bad`: exit 1, `data` |
19 | | -# present, its one set is `good/good`, `diagnostics` holds exactly one |
| 19 | +# present, its one set is `good` (one configuration: no prefix, SPEC-005 |
| 20 | +# v1.6 R3.3), `diagnostics` holds exactly one |
20 | 21 | # `error` with `path` "bad/mcpp.toml" and a message naming `bad`, and |
21 | 22 | # `watch` lists `bad/mcpp.toml` alongside `good`'s own inputs. |
22 | 23 | # B. Without `--format`, the same run prints the document (not empty) and |
@@ -66,7 +67,7 @@ import json, sys |
66 | 67 | e = json.load(open(sys.argv[1])) |
67 | 68 | d = e["data"] |
68 | 69 | sets = [s["name"] for s in d["database"]["sets"]] |
69 | | -assert sets == ["good/good"], sets |
| 70 | +assert sets == ["good"], sets |
70 | 71 | diags = e["diagnostics"] |
71 | 72 | assert len(diags) == 1, diags |
72 | 73 | diag = diags[0] |
|
86 | 87 | set -e |
87 | 88 | [ "$rc" = 1 ] || fail "B: bare invocation exit status $rc, expected 1" b.out b.err |
88 | 89 | [ -s b.out ] || fail "B: the bare document is empty" b.err |
89 | | -"$PY" -c 'import json,sys; d=json.load(open(sys.argv[1])); assert d["sets"][0]["name"]=="good/good", d["sets"]' b.out \ |
| 90 | +"$PY" -c 'import json,sys; d=json.load(open(sys.argv[1])); assert d["sets"][0]["name"]=="good", d["sets"]' b.out \ |
90 | 91 | || fail "B: the bare document's set" b.out |
91 | 92 | grep -q "bad" b.err || fail "B: the failed member's reason is not on stderr" b.err |
92 | 93 | echo "ok: B, the exit code is 1 without --format too, and the document still prints" |
|
0 commit comments