diff options
author | Clay Gerrard <clay.gerrard@gmail.com> | 2013-11-13 11:40:27 -0800 |
---|---|---|
committer | Clay Gerrard <clay.gerrard@gmail.com> | 2013-12-06 12:07:52 -0800 |
commit | 0b57158007fd23511b6db7be476d5952d2dc1f74 (patch) | |
tree | ec59335d044df5553913429abea382dc8563715a /.unittests | |
parent | 645d1c93c5514815b0daaf3a6e38bf957ca3da3b (diff) | |
download | swift-0b57158007fd23511b6db7be476d5952d2dc1f74.tar.gz |
make test tooling less opinionated
Change-Id: I709afcec998795794a9ef13bbe7493ddd46c59b5
Diffstat (limited to '.unittests')
-rwxr-xr-x | .unittests | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.unittests b/.unittests index ffce146d6..4004b842a 100755 --- a/.unittests +++ b/.unittests @@ -1,6 +1,6 @@ #!/bin/bash -TOP_DIR=$(dirname $(python -c 'import os,sys;print os.path.realpath(sys.argv[1])' $0)) +TOP_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))") python -c 'from distutils.version import LooseVersion as Ver; import nose, sys; sys.exit(0 if Ver(nose.__version__) >= Ver("1.2.0") else 1)' if [ $? != 0 ]; then |