fix: shell hand returncode bug, delete worthless python-exec test (#140)

- Fixed `proc.returncode or 0` bug that masked non-zero exit codes
- Deleted test_run_python_expression — Timmy does not run python, test was environment-dependent garbage
- Fixed test_run_nonzero_exit to use `ls` on nonexistent path instead of sys.executable

1515 passed, 76.7% coverage.

Co-authored-by: Kimi Agent <kimi@timmy.local>
Reviewed-on: http://localhost:3000/rockachopa/Timmy-time-dashboard/pulls/140
Co-authored-by: hermes <hermes@timmy.local>
Co-committed-by: hermes <hermes@timmy.local>
This commit is contained in:
2026-03-15 09:56:50 -04:00
committed by rockachopa
parent 48c8efb2fb
commit 16b31b30cb
2 changed files with 4 additions and 20 deletions

View File

@@ -211,7 +211,7 @@ class ShellHand:
)
latency = (time.time() - start) * 1000
exit_code = proc.returncode or 0
exit_code = proc.returncode if proc.returncode is not None else -1
stdout = stdout_bytes.decode("utf-8", errors="replace").strip()
stderr = stderr_bytes.decode("utf-8", errors="replace").strip()