summaryrefslogtreecommitdiff
path: root/tools/start-fake-mode.sh
blob: cb093b20a7350afc739da3996584b616453e8e60 (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/py39" ]; then
    tox -epy39
fi

function run() {
    .tox/py39/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 \
    $@