-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: exception when trying to select a tool without the assistant …
…while the configured one is missing (#1551) * Fix exception when trying to select a toolchain This problem arised only if trying to select a toolchain with --select <tool> while the configured tool was missing on disk. * Test for fix
- Loading branch information
Showing
6 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Check a particular error in which selecting a compiler via `alr toolchain | ||
--select <compiler>` fails if the previously configured compiler is missing on | ||
disk. | ||
""" | ||
|
||
from drivers.alr import run_alr | ||
|
||
# Configure a valid compiler | ||
run_alr("toolchain", "--select", "gnat_native", "gprbuild") | ||
|
||
# Configure an invalid compiler | ||
run_alr("config", "--global", "--set", "toolchain.use.gnat", "gnat_nono=1.2.3") | ||
|
||
# This must succeed | ||
run_alr("toolchain", "--select", "gnat_native=1.0") | ||
|
||
print("SUCCESS") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
driver: python-script | ||
build_mode: both | ||
indexes: | ||
gnat_toolchain_index: {} |