Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
51073638
Commit
51073638
authored
15 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
SE-133 YeastX - fix integration tests: make tests more stable by sorting the incoming datasets
SVN: 12749
parent
50111139
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
integration-tests/test-yeastx.sh
+19
-7
19 additions, 7 deletions
integration-tests/test-yeastx.sh
with
19 additions
and
7 deletions
integration-tests/test-yeastx.sh
+
19
−
7
View file @
51073638
...
...
@@ -15,21 +15,33 @@ METABOL_DB=metabol_dev
# --------------------
# Changes last-modification-time so that the order is the same as the alphabetical order.
function
change_modification_time_alphabetically
{
local dir
=
$1
local
file
# modification data format: YYYYMMDDhhmm
local
modification_time
=
200811221122
for
file
in
`
ls
-1
$dir
|
sort
`
;
do
local
full_path
=
$dir
/
$file
# change the modification date format
touch
-t
$modification_time
$full_path
modification_time
=
$((
$modification_time
+
1
))
done
}
# Prepare template incoming data and some destination data structures
function
prepare_data
{
# Prepare empty incoming data
rm
-fr
$MY_DATA
mkdir
-p
$MY_DATA
local
SRC
=
$TEMPLATE
/data-yeastx
local
file
# Copy the files in the alphabetical order, so the last-modification-time order is the same.
# DSS processes files ordered by modification time, so in this way we make the tests more predictable.
for
file
in
`
ls
-1
$SRC
|
sort
`
;
do
cp
-R
$TEMPLATE
/data-yeastx/
$file
$MY_DATA
/
done
cp
-R
$SRC
/
*
$MY_DATA
/
clean_svn
$MY_DATA
chmod
-R
700
$MY_DATA
/incoming
*
# DSS processes files ordered by modification time, so in this way we make the tests more predictable.
change_modification_time_alphabetically
$MY_DATA
/incoming
}
...
...
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