Skip to content

Commit f9fd356

Browse files
ci
1 parent 6fa89c7 commit f9fd356

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

noxfile.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ def test(session):
7676

7777
# Launch the TCP broker for testing the Cyphal/serial transport.
7878
os.system("ncat --version")
79-
broker_process = subprocess.Popen(
80-
["ncat", "--broker", "--listen", "-p", "50905"],
81-
env={k: (v or "") for k, v in session.env.items()},
82-
)
79+
broker_process = subprocess.Popen(["ncat", "--broker", "--listen", "-p", "50905"])
8380
time.sleep(1.0) # Ensure that it has started.
8481
if broker_process.poll() is not None:
8582
raise RuntimeError("Could not start the TCP broker")
@@ -151,7 +148,12 @@ def test(session):
151148
session.cd(ROOT_DIR)
152149
session.run("sonar-scanner", f"-Dsonar.login={sonarcloud_token}", external=True)
153150
else:
154-
session.log("SonarQube scan skipped")
151+
session.log(
152+
f"SonarQube scan skipped. "
153+
f"SonarCloud token is set: {bool(sonarcloud_token)}. "
154+
f"Is latest Python: {is_latest_python(session)}. "
155+
f"Python version: {session.run('python', '-V', silent=True)}"
156+
)
155157

156158

157159
@nox.session()

0 commit comments

Comments
 (0)