Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
0441f890
Commit
0441f890
authored
Dec 23, 2016
by
Sergio Bertolin
Browse files
Added the option to run tests using md5 home
parent
f27e61a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/integration/run.sh
View file @
0441f890
...
...
@@ -8,6 +8,15 @@ OCC=${OC_PATH}occ
SCENARIO_TO_RUN
=
$1
HIDE_OC_LOGS
=
$2
function
enableMD5HomeStorage
{
$OCC
app:enable testing
OUTPUT_ENABLING_ALT_USER_BACKEND
=
`
$OCC
config:app:set testing enable_alt_user_backend
--value
yes
`
}
function
cleanupMD5HomeStorage
{
$OCC
app:disable testing
}
# avoid port collision on jenkins - use $EXECUTOR_NUMBER
if
[
-z
"
$EXECUTOR_NUMBER
"
]
;
then
EXECUTOR_NUMBER
=
0
...
...
@@ -37,6 +46,10 @@ ID_STORAGE=`echo $OUTPUT_CREATE_STORAGE | awk {'print $5'}`
$OCC
files_external:option
$ID_STORAGE
enable_sharing
true
if
test
"
$MD5_HOME_STORAGE
"
=
"1"
;
then
enableMD5HomeStorage
fi
vendor/bin/behat
--strict
-f
junit
-f
pretty
$SCENARIO_TO_RUN
RESULT
=
$?
...
...
@@ -48,6 +61,10 @@ $OCC files_external:delete -y $ID_STORAGE
#Disable external storage app
$OCC
app:disable files_external
if
test
"
$MD5_HOME_STORAGE
"
=
"1"
;
then
cleanupMD5HomeStorage
fi
if
[
-z
$HIDE_OC_LOGS
]
;
then
tail
"
${
OC_PATH
}
/data/owncloud.log"
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment