]> git.sur5r.net Git - u-boot/commit
patman: Provide a way to intercept commands for testing
authorSimon Glass <sjg@chromium.org>
Sat, 6 Sep 2014 01:00:12 +0000 (19:00 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Sep 2014 22:38:27 +0000 (16:38 -0600)
commit82012dd284257ce785b1e3996a9a2519e8a4b303
tree011ac065868322eb00e10dbe50661ee4ede082de
parent48ba5856eb47dca0abc4d24e7c4e3ce1fd2628f1
patman: Provide a way to intercept commands for testing

Add a test point for the command module. This allows tests to emulate
the execution of commands. This provides more control (since we can make
the fake 'commands' do whatever we like), makes it faster to write tests
since we don't need to set up as much environment, and speeds up test
execution.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/command.py