aboutsummaryrefslogtreecommitdiff
path: root/selenium
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2017-11-02 16:03:27 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2017-11-02 16:03:27 +0100
commitd4e8b98934199416274b5d4c367002c38f1edcb2 (patch)
tree2ab162bbac52a5dc2471088c96a0f653fb6a8a35 /selenium
parentca2073c22a35b26a56c015cd4dc5c9b87cded912 (diff)
abort() doesn't log anymore
Diffstat (limited to 'selenium')
-rwxr-xr-xselenium/withdraw_buy.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/selenium/withdraw_buy.py b/selenium/withdraw_buy.py
index 2ac477c1f..0e3108f27 100755
--- a/selenium/withdraw_buy.py
+++ b/selenium/withdraw_buy.py
@@ -35,7 +35,6 @@ def kill_display():
# All the operations we need upon errors.
def abort(client):
- print_log(client)
client.quit()
kill_display()
sys.exit(1)
@@ -295,23 +294,28 @@ client = client_setup(args)['client']
wait = WebDriverWait(client, 20)
if not register(client):
+ print_log(client)
abort(client)
if not withdraw(client, "10.00 TESTKUDOS"):
+ print_log(client)
abort(client)
fulfillment_url_25 = buy_article(client, "25._The_Danger_of_Software_Patents")
if not fulfillment_url_25:
+ print_log(client)
abort(client)
client.delete_all_cookies()
if not buy_article(client, "25._The_Danger_of_Software_Patents", fulfillment_url_25):
+ print_log(client)
logger.error("Could not replay payment")
abort(client)
if not make_donation(client, "1.0 TESTKUDOS"):
+ print_log(client)
abort(client)
client.quit()