mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +00:00
LyXHTML validation tests: explicitly exit the Python script if it fails
This commit is contained in:
parent
b12875206e
commit
0f8951e708
@ -23,10 +23,13 @@ import html5validator
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print('Expecting one argument, the path to the LyX binary to test')
|
||||
sys.exit(-1)
|
||||
if not os.path.exists(sys.argv[1]):
|
||||
print('The given path does not point to an existing file')
|
||||
sys.exit(-1)
|
||||
if not os.access(sys.argv[1], os.X_OK):
|
||||
print('The given path does not point to an executable file')
|
||||
sys.exit(-1)
|
||||
|
||||
|
||||
PATH_SCRIPT = os.path.dirname(os.path.realpath(__file__))
|
||||
|
Loading…
Reference in New Issue
Block a user