summaryrefslogtreecommitdiffstats
path: root/autotest-external.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autotest-external.sh')
-rwxr-xr-xautotest-external.sh9
1 files changed, 2 insertions, 7 deletions
diff --git a/autotest-external.sh b/autotest-external.sh
index 6ebe093c8a7..65d53aaa95d 100755
--- a/autotest-external.sh
+++ b/autotest-external.sh
@@ -32,11 +32,6 @@ if ! [ -x "$PHPUNIT" ]; then
exit 3
fi
-if ! which replace > /dev/null 2>&1; then
- echo "The command 'replace' is not available on this system. Please install it first." >&2
- exit 5
-fi
-
PHPUNIT_VERSION=$("$PHPUNIT" --version | cut -d" " -f2)
PHPUNIT_MAJOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f1)
PHPUNIT_MINOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f2)
@@ -181,7 +176,7 @@ EOF
FILES_EXTERNAL_BACKEND_ENV_PATH=../apps/files_external/tests/env
for startFile in `ls -1 $FILES_EXTERNAL_BACKEND_ENV_PATH | grep start`; do
- name=`echo $startFile | replace "start-" "" | replace ".sh" ""`
+ name=`echo $startFile | sed 's/start-//' | sed 's/\.sh//'`
if [ -n "$2" -a "$2" != "$name" ]; then
echo "skip: $startFile"
@@ -211,7 +206,7 @@ EOF
fi
# calculate stop file
- stopFile=`echo "$startFile" | replace start stop`
+ stopFile=`echo "$startFile" | sed 's/start/stop/'`
echo "stop: $stopFile"
if [ -f $FILES_EXTERNAL_BACKEND_ENV_PATH/$stopFile ]; then
# execute stop file if existant