Skip to content

Commit 58a6bbf

Browse files
committed
some test script fixes for starting mongod
1 parent bc78d30 commit 58a6bbf

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.mci.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ libmongoc_variables:
2929

3030
default_expansions_def: &default_expansions
3131
env_vars: CFLAGS=""
32-
mongodb_args: "--fork --nojournal --smallfiles --logpath=/data/log --dbpath=/data/db --pidfilepath=/data/pid"
32+
mongodb_logpath: /data/log
33+
mongodb_args: "--fork --noprealloc --smallfiles --dbpath=/data/db --pidfilepath=/data/pid"
3334

3435
i386_expansions_def: &i386_expansions
3536
env_vars: CFLAGS="-m32 -march=i386"
@@ -71,15 +72,6 @@ pre:
7172
remote_key: project_aws_key
7273
- local_key: aws_secret
7374
remote_key: project_aws_secret
74-
75-
- command: shell.exec
76-
params:
77-
script: |
78-
set -o verbose
79-
rm -rf libmongoc
80-
rm -rf /data/db
81-
mkdir -p /data/db
82-
8375
post:
8476
- command: shell.exec
8577
params:
@@ -130,6 +122,13 @@ tasks:
130122
depends_on:
131123
- name: compile
132124
commands:
125+
- command: shell.exec
126+
params:
127+
script: |
128+
set -o verbose
129+
rm -rf libmongoc
130+
rm -rf /data/db
131+
mkdir -p /data/db
133132
- command: shell.exec
134133
params:
135134
script: |
@@ -148,7 +147,11 @@ tasks:
148147
${decompress} mongo_enterprise.${ext|tgz}
149148
cp mongodb*/bin/mongod${extension} ./mongod${extension}
150149
chmod +x ./mongod${extension}
151-
./mongod${extension} ${mongodb_args}
150+
if ! ./mongod${extension} ${mongodb_args} --logpath=${mongodb_logpath}
151+
then
152+
cat ${mongodb_logpath}
153+
exit 1
154+
fi
152155
sleep 30
153156
make check
154157

0 commit comments

Comments
 (0)