# Path: px/px_exec_util.py
# ENV = {}  # type: Dict[str, str]
# def run(command, check_exitcode=False):


import subprocess
from px import px_exec_util



def test_exec_false_no_check():
    assert px_exec_util.run(["false"]) == ""


def test_exec_true_with_check():
    assert px_exec_util.run(["true"], check_exitcode=True) == ""


def test_exec_false_with_check():
    try:

# Path: px/px_exec_util.py
# ENV = {}  # type: Dict[str, str]
# def run(command, check_exitcode=False):


# Path: tests/px_exec_util_test.py
import subprocess
from px import px_exec_util




def test_exec_false_no_check():
    assert px_exec_util.run(["false"]) == ""


def test_exec_true_with_check():
    assert px_exec_util.run(["true"], check_exitcode=True) == ""


def test_exec_false_with_check():
    try:

        px_exec_util.run(["false"], check_exitcode=True)