Fix #335: Return proper exit code in hoc execution#1633
Conversation
|
please retest |
bcccd73 to
171b031
Compare
39a1a55 to
1c4ef1f
Compare
Codecov Report
@@ Coverage Diff @@
## master #1633 +/- ##
==========================================
+ Coverage 45.43% 45.46% +0.02%
==========================================
Files 551 551
Lines 113144 113149 +5
==========================================
+ Hits 51403 51438 +35
+ Misses 61741 61711 -30
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
|
This PR is ready for review. |
nrnhines
left a comment
There was a problem hiding this comment.
Thanks! Nice improvment. This seems basically sound to me and
$ nrniv temp.hoc
NEURON -- VERSION 8.2.dev-12-gfa5ca235 weji/hoc_exitcode (fa5ca235) 2022-03-28
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2021
See http://neuron.yale.edu/neuron/credits
nrniv: division by zero
in temp.hoc near line 1
1/0
^
hines@hines-T7500:~/neuron/temp/build$ echo $?
1
where
$ cat temp.hoc
1/0
It might be possible in the future to extend that behavior to
$ nrniv -c '1/0'
NEURON -- VERSION 8.2.dev-12-gfa5ca235 weji/hoc_exitcode (fa5ca235) 2022-03-28
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2021
See http://neuron.yale.edu/neuron/credits
nrniv: division by zero
near line 1
1/0
^
nrniv: arg not valid statement: 1/0
near line 0
^
hines@hines-T7500:~/neuron/temp/build$ echo $?
0
Maybe this could work: set_tests_properties(<quithoc_testname> PROPERTIES WILL_FAIL TRUE) |
2f1bca5 to
41553e5
Compare
|
|
Changes covered in this PR:
hoc_main1andhoc_run1hoc_quitto exit with a use-specified status code