Skip to content
Snippets Groups Projects

Make some lbexec tests independent of the value of GAUDIAPPNAME

Merged Marco Clemencic requested to merge clemenci-master-patch-05745 into master
All threads resolved!
2 files
+ 9
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -8,6 +8,7 @@
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
import os
import sys
from pathlib import Path
@@ -25,6 +26,8 @@ LBEXEC_CMD = ["lbexec"]
OPTIONS_FN = str(Path(__file__).parent / "example.yaml")
FUNCTION_SPEC = f"{examples.__name__}:do_nothing"
LBEXEC_EXAMPLE_CMD = LBEXEC_CMD + [FUNCTION_SPEC, OPTIONS_FN]
WELCOME_MSG = "Welcome to {}".format(
os.environ.get("GAUDIAPPNAME", "ApplicationMgr"))
@pytest.fixture
@@ -298,6 +301,6 @@ def test_valid(capfd, monkeypatch, function_spec, options_spec):
exit_code = parse_args()
captured = capfd.readouterr()
assert exit_code == 0, captured
assert "Welcome to LHCb" in captured.out
assert WELCOME_MSG in captured.out
assert "Application Manager Terminated successfully" in captured.out
assert captured.err == ""
Loading