mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 14:18:38 -05:00
Add --test as command line option for test purposes
This commit is contained in:
parent
bee5d20670
commit
0ed8eb5a40
@ -58,7 +58,8 @@ def main():
|
||||
help="Choose which wrapper/framework is to be used to run the example.", type=str)
|
||||
parser.add_argument('--no_dark', action='store_true',
|
||||
help="Exihibts the original window (without qdarkstyle).")
|
||||
|
||||
parser.add_argument('--test', action='store_true',
|
||||
help="Auto close window after 2s.")
|
||||
# parsing arguments from command line
|
||||
args = parser.parse_args()
|
||||
|
||||
@ -177,7 +178,7 @@ def main():
|
||||
# connect some actions, signals and functions
|
||||
# auto quit after 2s when testing on travis-ci
|
||||
|
||||
if "--travis" in sys.argv:
|
||||
if "--test" in sys.argv:
|
||||
QTimer.singleShot(2000, app.exit)
|
||||
|
||||
# run
|
||||
|
Loading…
Reference in New Issue
Block a user