summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-03-23 11:51:24 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-03-23 11:51:24 -0400
commit3126eb792816e09ce56f24262447077df1bdc0c3 (patch)
tree3a80de210c8fc8fe49a0597e7b45bd638699a231 /cmd2/cmd2.py
parent3a4893ec32c6d38cad344667fead93e2eed8dc88 (diff)
downloadcmd2-git-exit_code.tar.gz
No longer using -1 as an exit codeexit_code
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 3430ad44..68ad8201 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -4750,7 +4750,7 @@ class Cmd(cmd.Cmd):
transcripts_expanded = utils.files_from_glob_patterns(transcript_paths, access=os.R_OK)
if not transcripts_expanded:
self.perror('No test files found - nothing to test')
- self.exit_code = -1
+ self.exit_code = 1
return
verinfo = ".".join(map(str, sys.version_info[:3]))
@@ -4787,7 +4787,7 @@ class Cmd(cmd.Cmd):
self.perror(error_str[start:])
# Return a failure error code to support automated transcript-based testing
- self.exit_code = -1
+ self.exit_code = 1
def async_alert(self, alert_msg: str, new_prompt: Optional[str] = None) -> None: # pragma: no cover
"""