diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-08-24 16:38:21 -0400 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-08-24 17:00:43 -0400 |
| commit | ee0cf339cbfc8ffb2883309bfca7e288c0d65014 (patch) | |
| tree | 9e47e94c4b2ae01941d77d6ac198ffcc0a707e52 /cmd2 | |
| parent | ff41fbb12d315128055b8163836dd3874c56d399 (diff) | |
| download | cmd2-git-ee0cf339cbfc8ffb2883309bfca7e288c0d65014.tar.gz | |
Added self.last_result unit tests for run_script, _relative_run_script, and set commands.
Diffstat (limited to 'cmd2')
| -rw-r--r-- | cmd2/cmd2.py | 1 |
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 |
