summaryrefslogtreecommitdiff
path: root/tools/start-fake-mode.sh
blob: 250a274311f0e2e690ab8c4d03d563a53bebac34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
# Arguments: Use --pid_file to specify a pid file location.


if [ ! -d ".tox/py27" ]; then
    tox -epy27
fi

function run() {
    .tox/py27/bin/python $@
}
run bin/trove-manage \
    --config-file=etc/trove/trove.conf.test db_recreate \
    trove_test.sqlite mysql fake
run bin/trove-fake-mode \
    --fork --config-file=etc/trove/trove.conf.test \
    $@