Skip to content

Commit

Permalink
Generate unique executable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacetown committed Aug 15, 2024
1 parent 63e44ed commit 3dc68c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import socket
import sys
from pathlib import Path
import tempfile
from time import sleep
from typing import Tuple
import requests
Expand Down Expand Up @@ -385,15 +386,14 @@ def check_bundled_app(session: nox.Session) -> None:
"""Run a smoke test with the bundled app, should not be used directly."""
with session.chdir("build"):
executable = get_executable_name().absolute()
# bash here is needed to be independent from the file extension (Windows).
session.run("bash", "-c", f"{executable} --help", external=True)
session.run(str(executable), "--help", external=True)
session.log("Run all transformations to check if all the modules are packed")
session.create_tmp()
for format in OUTPUT_FORMATS:
session.run(
"bash",
"-c",
f"{executable} --{format} $TMPDIR/out.{format}",
str(executable),
"--{format}",
f".{tempfile.mktemp(suffix=format)}",
external=True,
)
if CI_RUN:
Expand Down

0 comments on commit 3dc68c4

Please sign in to comment.