# checking if the new binary (with '-rms') is used
result=run([str(binary)],check=False)
if"-rms"notinresult.stdout:
result_check=run([str(binary)],check=False)
if"-rms"notinresult_check.stdout:
raiseRuntimeError(
'An bs1770demo executable without RMS support (cmdl option "-rms") was detected. Please update the bs1770demo executable. See bin/README.md for details.'