From c82260f5ec6ad49439ba8abf7215718b3db54fa4 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Thu, 5 Aug 2010 13:31:19 -0300 Subject: [PATCH] make runtests.sh more virtualenv-friendly --- bin/runtests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/runtests.sh b/bin/runtests.sh index 48a623d6d..a4e2b482e 100755 --- a/bin/runtests.sh +++ b/bin/runtests.sh @@ -1,8 +1,8 @@ #!/bin/sh -# look for twisted trial command in common known locations -if [ -x /usr/bin/trial ]; then - trial="/usr/bin/trial" +# look for twisted trial command +if type trial >/dev/null 2>&1; then + trial="trial" elif [ -x /usr/lib/twisted/bin/trial ]; then trial="/usr/lib/twisted/bin/trial" elif [ -x /usr/lib64/twisted/bin/trial ]; then