Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
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
die_coolen_jungs
our_own_cloud_project
Commits
e3c0db10
Commit
e3c0db10
authored
10 years ago
by
Morris Jobke
Browse files
Options
Downloads
Plain Diff
Merge pull request #10534 from owncloud/autotest-cleanuponinterrupt
Restore autotest config on SIGINT or SIGTERM
parents
ea8c0bce
6ed174d0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
autotest.sh
+11
-5
11 additions, 5 deletions
autotest.sh
with
11 additions
and
5 deletions
autotest.sh
+
11
−
5
View file @
e3c0db10
...
...
@@ -63,6 +63,16 @@ if [ -f config/config.php ]; then
mv
config/config.php config/config-autotest-backup.php
fi
function
restore_config
{
# Restore existing config
if
[
-f
config/config-autotest-backup.php
]
;
then
mv
config/config-autotest-backup.php config/config.php
fi
}
# restore config on exit, even when killed
trap
restore_config SIGINT SIGTERM
# use tmpfs for datadir - should speedup unit test execution
if
[
-d
/dev/shm
]
;
then
DATADIR
=
/dev/shm/data-autotest
$EXECUTOR_NUMBER
...
...
@@ -220,11 +230,7 @@ fi
cd
$BASEDIR
# Restore existing config
if
[
-f
config/config-autotest-backup.php
]
;
then
mv
config/config-autotest-backup.php config/config.php
fi
restore_config
#
# NOTES on mysql:
# - CREATE DATABASE oc_autotest;
...
...
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