losmoketest.py: allow to use the long --headless option; not only -s
This commit is contained in:
parent
87268f254f
commit
4255c2663d
1 changed files with 3 additions and 1 deletions
|
@ -570,6 +570,8 @@ def main():
|
||||||
interactive = False
|
interactive = False
|
||||||
elif o in ("-t", "--type"):
|
elif o in ("-t", "--type"):
|
||||||
pass
|
pass
|
||||||
|
elif o in ("-s", "--headless"):
|
||||||
|
pass
|
||||||
elif o in ("-h", "--help"):
|
elif o in ("-h", "--help"):
|
||||||
usage()
|
usage()
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
@ -591,7 +593,7 @@ def main():
|
||||||
elif o in ("-l", "--loop"):
|
elif o in ("-l", "--loop"):
|
||||||
loop = True
|
loop = True
|
||||||
else:
|
else:
|
||||||
assert False, "Unhandled option"
|
assert False, "Unhadled option: " + o
|
||||||
|
|
||||||
if interactive == True:
|
if interactive == True:
|
||||||
key = raw_input("The testing will OVERRIDE existed libreoffice, continue(y/N)? ")
|
key = raw_input("The testing will OVERRIDE existed libreoffice, continue(y/N)? ")
|
||||||
|
|
Loading…
Reference in a new issue