summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-08-24 16:38:21 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-08-25 13:10:16 -0400
commit7b32a193353b734bf078a54d2f60770e2de359bd (patch)
tree9e47e94c4b2ae01941d77d6ac198ffcc0a707e52 /cmd2/cmd2.py
parent8f2a9b0921ff195118c716e03fe4b42a6c3ab87a (diff)
downloadcmd2-git-7b32a193353b734bf078a54d2f60770e2de359bd.tar.gz
Added self.last_result unit tests for run_script, _relative_run_script, and set commands.
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 35353679..1516f709 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -4872,6 +4872,7 @@ class Cmd(cmd.Cmd):
try:
# An empty file is not an error, so just return
if os.path.getsize(expanded_path) == 0:
+ self.last_result = True
return None
# Make sure the file is ASCII or UTF-8 encoded text