summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2')
-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
"""