From 0592fcefbdb89b4cbd73fa306f0bf22bbea0b2f2 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Fri, 20 Jun 2014 22:58:01 +0800 Subject: [PATCH] refine test --- test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test.py b/test.py index 68b120f..a05afb5 100755 --- a/test.py +++ b/test.py @@ -7,11 +7,11 @@ import signal import select import time from subprocess import Popen, PIPE -from shadowsocks import encrypt_salsa20 -encrypt_salsa20.test() - -print 'encryption test passed' +if 'salsa20' in sys.argv[-1]: + from shadowsocks import encrypt_salsa20 + encrypt_salsa20.test() + print 'encryption test passed' p1 = Popen(['python', 'shadowsocks/server.py', '-c', sys.argv[-1]], stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)