erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.63k stars 54 forks source link

Exit with 1 in tests #327

Open mtshiba opened 1 year ago

mtshiba commented 1 year ago

Describe the behavior?

The test passes on macOS and Linux, but fails on Windows. For some reason, the exit code of the last test executed is 1. But I don't know why.

https://github.com/erg-lang/erg/actions/runs/3814673301/jobs/6489147639

This is reproduced even when a test run is performed with pre-commit, so a special build flag is used to avoid this. But this is an ugly hack.

https://github.com/erg-lang/erg/blob/3ad6059070ac690cd0d2c765ac7a86bb01c5cf2a/tests/test.rs#L49-L57

Reproducible code

No response

Expected result

No response

Actual result

No response

Additional context

No response

Erg version

0.6.1-nightly.1

Python version

None

OS

Windows 11