Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Nextcloud
server
Commits
e3b47e80
Commit
e3b47e80
authored
Dec 9, 2015
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
script shall exit with error in case the start file has issues - fixes #20798
parent
ff656e31
Branches
ci/trivy-scan
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
autotest-external.sh
+8
-1
8 additions, 1 deletion
autotest-external.sh
with
8 additions
and
1 deletion
autotest-external.sh
+
8
−
1
View file @
e3b47e80
...
@@ -193,7 +193,8 @@ EOF
...
@@ -193,7 +193,8 @@ EOF
echo
"name:
$name
"
echo
"name:
$name
"
# execute start file
# execute start file
if
./
$FILES_EXTERNAL_BACKEND_ENV_PATH
/
$startFile
;
then
./
$FILES_EXTERNAL_BACKEND_ENV_PATH
/
$startFile
if
[
$?
-eq
0
]
;
then
# getting backend to test from filename
# getting backend to test from filename
# it's the part between the dots startSomething.TestToRun.sh
# it's the part between the dots startSomething.TestToRun.sh
testToRun
=
`
echo
$startFile
|
cut
-d
'-'
-f
2
`
testToRun
=
`
echo
$startFile
|
cut
-d
'-'
-f
2
`
...
@@ -209,6 +210,8 @@ EOF
...
@@ -209,6 +210,8 @@ EOF
"
$PHPUNIT
"
--configuration
phpunit-autotest-external.xml
--log-junit
"autotest-external-results-
$1
-
$name
.xml"
"
$FILES_EXTERNAL_BACKEND_PATH
/
$testToRun
.php"
"
$PHPUNIT
"
--configuration
phpunit-autotest-external.xml
--log-junit
"autotest-external-results-
$1
-
$name
.xml"
"
$FILES_EXTERNAL_BACKEND_PATH
/
$testToRun
.php"
RESULT
=
$?
RESULT
=
$?
fi
fi
else
DOEXIT
=
1
fi
fi
# calculate stop file
# calculate stop file
...
@@ -218,6 +221,10 @@ EOF
...
@@ -218,6 +221,10 @@ EOF
# execute stop file if existant
# execute stop file if existant
./
$FILES_EXTERNAL_BACKEND_ENV_PATH
/
$stopFile
./
$FILES_EXTERNAL_BACKEND_ENV_PATH
/
$stopFile
fi
fi
if
[
"
$DOEXIT
"
]
;
then
echo
"Error during start file execution ... terminating"
exit
$DOEXIT
fi
done
;
done
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment