Skip to content

Commit 076fd40

Browse files
committed
update test
just pushing this to see the actual error message in CI
1 parent 6db9423 commit 076fd40

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/cli/other_test.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,17 @@ def test_execute_addon_failure_json_notexist(tmpdir):
246246
@pytest.mark.skipif(sys.platform != "win32", reason="Windows specific issue")
247247
def test_execute_addon_path_with_spaces(tmpdir):
248248
addon_json = os.path.join(tmpdir, 'addon.json')
249-
addon_executable = os.path.join(tmpdir, 'A Folder', 'addon.exe')
249+
addon_dir = os.path.join(tmpdir, 'A Folder')
250+
addon_script = os.path.join(addon_dir, 'addon.bat')
251+
addon_error_msg = json.dumps({'file': '1.c', 'linenr': 1, 'column': 1, 'severity': 'error', 'message': 'hello world', 'errorId': 'hello', 'addon': 'test'})
252+
250253
with open(addon_json, 'wt') as f:
251-
f.write(json.dumps({'executable': addon_executable }))
254+
f.write(json.dumps({'executable': addon_script }))
255+
256+
os.makedirs(addon_dir, exist_ok=True)
257+
258+
with open(addon_script, 'wt') as f:
259+
f.write(f'@echo "{addon_error_msg}"')
252260

253261
test_file = os.path.join(tmpdir, 'test.cpp')
254262
with open(test_file, 'wt') as f:

0 commit comments

Comments
 (0)