summaryrefslogtreecommitdiff
path: root/bin/runTests.sh
diff options
context:
space:
mode:
authorLukas Martini <lukas.martini@unionhost.de>2011-04-07 19:54:41 +0200
committerLukas Martini <lukas.martini@unionhost.de>2011-04-07 19:54:41 +0200
commitdebbced1851e884354d6dbf68982199f85ad2c7c (patch)
tree75528b70b3c0078c7658b8f1e98806fef7dcdf78 /bin/runTests.sh
parentde967c1cd5e186f19caacb35ff471f8aa62a877c (diff)
downloadetherpad-lite-debbced1851e884354d6dbf68982199f85ad2c7c.zip
Fixing scripts to run from both bin/ and /.
Diffstat (limited to 'bin/runTests.sh')
-rwxr-xr-xbin/runTests.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/runTests.sh b/bin/runTests.sh
index 68ebde89..f22004e3 100755
--- a/bin/runTests.sh
+++ b/bin/runTests.sh
@@ -6,5 +6,9 @@ type -P nodeunit &>/dev/null || {
echo "Run: npm install nodeunit" >&2
exit 1
}
-
-nodeunit ../tests
+
+if [ -d "../bin" ]; then
+ cd "../"
+fi
+
+nodeunit tests