Convenience function returning a shell command test expectation.
(*args, **kwargs)
| 95 | |
| 96 | |
| 97 | def Cmd(*args, **kwargs): |
| 98 | """Convenience function returning a shell command test expectation.""" |
| 99 | return { |
| 100 | "name": "command", |
| 101 | "args": args, |
| 102 | "ret": args[-1], |
| 103 | "cb": kwargs.get("cb"), |
| 104 | "cwd": kwargs.get("cwd", TEST_CONFIG["DEFAULT_CWD"]), |
| 105 | } |
| 106 | |
| 107 | |
| 108 | def RL(text, cb=None): |
no test coverage detected