|
@ -89,6 +89,8 @@ if __name__ == "__main__": |
|
|
help="setup environment, then stop") |
|
|
help="setup environment, then stop") |
|
|
optParser.add_option("-p", "--print", action="store_true", dest="print", |
|
|
optParser.add_option("-p", "--print", action="store_true", dest="print", |
|
|
help="print sync message trace in inbox") |
|
|
help="print sync message trace in inbox") |
|
|
|
|
|
optParser.add_option("-n", "--noend", action="store_true", dest="noend", |
|
|
|
|
|
help="do not end") |
|
|
optParser.add_option("-E", "--end-on", dest="notifications", |
|
|
optParser.add_option("-E", "--end-on", dest="notifications", |
|
|
help="end test on these notifications") |
|
|
help="end test on these notifications") |
|
|
optParser.add_option("-3", "--third-device", action="store_true", dest="third", |
|
|
optParser.add_option("-3", "--third-device", action="store_true", dest="third", |
|
@ -167,6 +169,9 @@ if __name__ == "__main__": |
|
|
try: None in end_on |
|
|
try: None in end_on |
|
|
except TypeError: |
|
|
except TypeError: |
|
|
end_on = (end_on,) |
|
|
end_on = (end_on,) |
|
|
|
|
|
elif options.noend: |
|
|
|
|
|
end_on = (None,) |
|
|
|
|
|
|
|
|
Phone = Process(target=test_for, args=("Phone", "red", end_on, |
|
|
Phone = Process(target=test_for, args=("Phone", "red", end_on, |
|
|
options.multithreaded)) |
|
|
options.multithreaded)) |
|
|
Laptop = Process(target=test_for, args=("Laptop", "green", end_on, |
|
|
Laptop = Process(target=test_for, args=("Laptop", "green", end_on, |
|
|