Commit 50208e9e authored by Anika Treffehn's avatar Anika Treffehn
Browse files

changed run call in bs1770demo

parent 6e3a503a
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@
import copy
import logging
import re
import subprocess as sp
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import Optional, Tuple, Union
@@ -84,9 +83,8 @@ def bs1770demo(
        binary = find_binary("bs1770demo")

    # checking if the new binary (with '-rms') is used
    result = sp.run(str(binary), shell=True, stdout=sp.PIPE, stderr=sp.PIPE)
    result_stdout = result.stdout.decode("utf-8")
    if "-rms" not in result_stdout:
    result = run([str(binary)], check=False)
    if "-rms" not in result.stdout:
        raise RuntimeError(
            'An bs1770demo executable without RMS support (cmdl option "-rms") was detected. Please update the bs1770demo executable. See bin/README.md for details.'
        )