Update nosetests so it also runs tests in files which are executable by
default.
packs.download makes all the files executable by default and that's the
work around we need. The workaround itself is safe since we scope the
test directory to "<pack name>/tests/" and to files which names start
with test_.
@@ -249,7 +249,9 @@ if [ ${VERBOSE} = true ]; then
fi
echo "Running tests..."
-nosetests -s -v ${PACK_TESTS_PATH}
+# Note: We run nosetests with "--exe" option so it also runs test files which are executable
+# (pack install command automatically makes all the files, including test files executable)
+nosetests -s -v --exe ${PACK_TESTS_PATH}
TESTS_EXIT_CODE=$?
# Clean up and unset the variables
