File: utils.py

package info (click to toggle)
python-pysolr 3.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 372 kB
  • sloc: python: 2,050; sh: 166; makefile: 9
file content (17 lines) | stat: -rw-r--r-- 254 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import subprocess  # NOQA: B404


def _process(action):
    subprocess.call(("./start-solr-test-server.sh", action))  # NOQA: B603


def prepare():
    _process("prepare")


def start_solr():
    _process("start")


def stop_solr():
    _process("stop")