Skip to content

Commit

Permalink
Use non zero exit code on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Jun 27, 2024
1 parent c98c7ee commit dfdae39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
pip install pyneuroml
cd temp # where the NeuroML files get generated in the previous step
ls -alth
pynml -validate *.nml
#pynml -validate *.nml
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
debug="true"
optimize="${optimize}"
compiler="modern"
source="1.5"
target="1.5"
source="1.8"
target="1.8"
includeantruntime="false">
<classpath refid="test.class.path"/>

Expand Down
3 changes: 2 additions & 1 deletion src/cvapp/main.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void run() {
+ "\n or:\n ./run.sh swc_file ["+TEST_FLAG+"|"+TEST_NOGUI_FLAG+"|"+NEUROML1_EXPORT_FLAG+"|"+NEUROML2_EXPORT_FLAG+"]\n\n"
+ "where swc_file is the file name or URL of the SWC morphology file\n";
System.out.println(usage);
System.exit(0);
System.exit(1);

}

Expand Down Expand Up @@ -217,6 +217,7 @@ else if (myArgs.length==2 && (myArgs[1].equals(TEST_FLAG) || (myArgs[1].equals(T
} catch (Exception exception) {
System.err.println("Error while handling SWC file ("+a+")");
exception.printStackTrace();
System.exit(1);
}
}

Expand Down

0 comments on commit dfdae39

Please sign in to comment.