-
Notifications
You must be signed in to change notification settings - Fork 249
[PoC] CTest bypass #7710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[PoC] CTest bypass #7710
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -376,7 +376,7 @@ def __init__( | |||||||||||||||||||||||||
| self.BIN = infra.path.build_bin_path(self.BIN, binary_dir=binary_dir) | ||||||||||||||||||||||||||
| # 7.x releases combined binaries and removed the separate cchost entry-point | ||||||||||||||||||||||||||
| if major_version is None or major_version >= 7: | ||||||||||||||||||||||||||
|
Comment on lines
377
to
378
|
||||||||||||||||||||||||||
| # 7.x releases combined binaries and removed the separate cchost entry-point | |
| if major_version is None or major_version >= 7: | |
| # 7.x releases combined binaries and removed the separate cchost entry-point. | |
| # Use the same full-version threshold as the CLI logic which drops --enclave-file: | |
| # only versions strictly greater than 7.0.0-dev1 use the combined binary as entry-point. | |
| if "version" in locals() and version is not None: | |
| if version > Version("7.0.0-dev1"): | |
| self.BIN = infra.path.build_bin_path( | |
| enclave_file, binary_dir=binary_dir | |
| ) | |
| elif major_version is None or major_version >= 7: | |
| # Fallback for callers which only provide major_version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the default
--binary-dirto../buildmakes the CLI default dependent on the caller's current working directory beingtests/(or similar). This is likely to break existing workflows that invoke these scripts from the build directory (where-b .used to work without specifying it) or from an installed tree. Consider deriving the default from the script location and/or probing common candidate directories (e.g. prefer.if it containskeygenerator.sh, else fall back), rather than hard-coding a relative path.