mirror of
https://github.com/ceph/ceph
synced 2025-01-09 20:52:09 +00:00
4750ac0d77
Focus all tests inside a tests directory, and use pytest/tox to perform validation of the overall content. tox tests also use promtool if available to provide rule checks and unittest runs. In addition to these checks a validate_rules script provides the format, and content checks against all rules - which is also called via tox (but can be run independently too) Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
13 lines
238 B
Python
13 lines
238 B
Python
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
|