-
Notifications
You must be signed in to change notification settings - Fork 3
Feature: Make non-zero exit code available when compiler compile fails #7
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
Merged
joeltimothyoh
merged 21 commits into
startersclan:master
from
leojonathanoh:fix-exit-with-non-zero-exit-code-when-compile-fails
Sep 21, 2020
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a0c6edc
Populate the $global:LASTEXITCODE with exit code of compiler
leojonathanoh 86982b1
Fix integration tests to use $global:LASTEXITCODE
leojonathanoh 4af9c66
Add integration tests: bad cases
leojonathanoh 6ef6ed0
Fix integrated test bad plugin scenario titles and parameters
joeltimothyoh e1fe437
Fix contamination in stdout stream from creation of temporary directo…
joeltimothyoh 3a06f36
Revise to return exit code 1 on plugin compilation failures when sour…
joeltimothyoh 1c50592
Revise integration test scenarios for amxmodx to expect exit code 1 i…
joeltimothyoh c1831d2
Fix integrated test 'Compile plugin via wrapper, bad plugin' scenario
joeltimothyoh ff0ac21
Revise to return an exit code on plugin compilation errors whether am…
joeltimothyoh 08f2914
Revise to return exit code 1 on plugin compilation failures when non-…
joeltimothyoh 3c0227a
Fix displaying of compile and compiler wrapper stdout for when source…
joeltimothyoh c7f6bf5
Fix sourcemod plugin compilation error regex pattern
joeltimothyoh 4c9e880
Tweak debug line for expected exit code and exit code
joeltimothyoh 0b76d30
Rename expected exit code variable for improved clarity
joeltimothyoh b77e9cf
Refactor: Improve code flow in generation of command line arguments a…
leojonathanoh 5f4dceb
Refactor: Match compiler-emitted stdout against error regex to detect…
leojonathanoh baf0dce
Refactor: Cleanup stdinFile immediately after compilation
leojonathanoh d9751aa
Refactor: Enhance regex to match compiler-emitted stdout against to d…
leojonathanoh eff914f
Refactor: Enhance integration test descriptions for good plugins
leojonathanoh fb8517a
Refactor: Print stderr of compilation after stdout of compilation
leojonathanoh d3f8694
Fix: Add try catch finally around compilation environment preparation…
leojonathanoh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,6 @@ | ||
| #include <amxmodx> | ||
|
|
||
| public plugin_init() { | ||
| log_message("Hello from amxmodx."); | ||
| } | ||
| i am junk |
This file contains hidden or 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,6 @@ | ||
| #include <amxmodx> | ||
|
|
||
| public plugin_init() { | ||
| log_message("Hello from amxmodx."); | ||
| } | ||
| i am junk |
This file contains hidden or 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,6 @@ | ||
| #include <sourcemod> | ||
|
|
||
| public void OnPluginStart() { | ||
| LogMessage("Hello from sourcemod."); | ||
| } | ||
| i am junk |
This file contains hidden or 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,6 @@ | ||
| #include <sourcemod> | ||
|
|
||
| public void OnPluginStart() { | ||
| LogMessage("Hello from sourcemod."); | ||
| } | ||
| i am junk |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.