From 22ad235cd12b2498aa86395d2805e760d79c655e Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Wed, 12 Jun 2019 14:48:18 +0100 Subject: [PATCH] Tweak expectations --- .idea/workspace.xml | 18 +++++++----------- pyvpn | 8 +++----- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index caab9fc..94ccdf2 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,12 +2,7 @@ - - - - - - + + - + @@ -231,8 +227,8 @@ - - + + diff --git a/pyvpn b/pyvpn index 29158c9..8cd426f 100755 --- a/pyvpn +++ b/pyvpn @@ -24,13 +24,11 @@ if len(sys.argv) > 2: configFilePath = operatingDir + "/" + clientName + ".ovpn" - fScript.expect("[1-4]:") - + fScript.expect(".*[1-4]:") fScript.sendline("1") - - fScript.expect("Client name: ") - + fScript.expect(".*name:") fScript.sendline(clientName) + fScript.expect(".*") fScript.kill(0)