Commit Graph

7 Commits

Author SHA1 Message Date
Jeremiah Leary 65a8641c2e
#874 (#875): Suppressing stderr for argparse tests. 2022-11-19 09:54:31 -06:00
Hector Fernandez 630f64e650
wrong"-f " filepath returns OK (#649)
* Added check for input files.

* Created custom ArgumentParser to return ErrorCode 1 when it fails.

* Modified test to fit the new behavior.

* Reduced complexity.

* Added type check to "configuration" parameter too.

* Fixed unit tests.

Co-authored-by: Hector Fernandez <hector.fernandez@gtd.eu>
2021-12-11 08:20:28 -06:00
Emil Vanherp 0a966fc7c6
skip test instead of silently passing 2021-02-11 12:23:14 +01:00
Jeremiah Leary 9f4e3be1ed Updates for issue #528:
Setting permission tests so they do not run if you have root previliges.
2021-02-10 18:29:20 -06:00
Emil Vanherp 6996435f80
change tests to use subprocess.check_output instead of mock 2021-01-22 15:21:41 +01:00
Emil Vanherp a158fd2ac9
Distinguish between file errors
* Don't exit on file not found or other OSErrors, but continue (revert
from fc34afd4d0339e0b17d8f46e3bf527461beccf1a)
* Empty file, file not found, no permission and other
OSErrors are now reported differently.
2021-01-22 15:21:41 +01:00
Emil Vanherp 0971ca194c
Move read_vhdlfile to vhdlFile/utils
And exit with exit code 1 on file not found or any other OSError
2021-01-22 15:21:41 +01:00