summaryrefslogtreecommitdiffstats
path: root/monitoring/ceph-mixin/tests_alerts/utils.py
blob: 8429244472d1f600acd4623f0d754f5cb9497571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import pytest
import shutil
import subprocess


def promtool_available() -> bool:
    return shutil.which('promtool') is not None


def call(cmd):
    completion = subprocess.run(cmd.split(), stdout=subprocess.PIPE)
    return completion