summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.unittests5
-rwxr-xr-xufo/unittests.sh (renamed from ufo/.unittests)5
2 files changed, 3 insertions, 7 deletions
diff --git a/.unittests b/.unittests
deleted file mode 100755
index ad2a3a34aed..00000000000
--- a/.unittests
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-cd ufo
-./.unittests $@
-cd -
diff --git a/ufo/.unittests b/ufo/unittests.sh
index 2cee10be531..a02be77966f 100755
--- a/ufo/.unittests
+++ b/ufo/unittests.sh
@@ -1,6 +1,7 @@
#!/bin/bash
-cd test/unit
+cd $(dirname $0)/test/unit
nosetests --exe --with-coverage --cover-package gluster --cover-erase $@
+saved_status=$?
rm -f .coverage
-cd -
+exit $saved_status