patman: Allow test commands to fall back to real ones
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jul 2018 19:25:42 +0000 (13:25 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 1 Aug 2018 22:30:48 +0000 (16:30 -0600)
commit2b19321ef9cdc77e00c4d063330e2a4a6818c4fc
treec9298e538fb616468cf0eebeecbea240cd1b75b7
parent1d85888cdc1d831ff7a70b95922ee85195e7e09f
patman: Allow test commands to fall back to real ones

Tests use the 'test_result' feature to return a predetermined command
result for particular commands. The avoids needing to have the real
command available just to run a test. It works by calling the function
provided by the test, to get the value.

However sometimes the test does need to run the real command. Allow it to
fall back to do this when the function does not return a result.

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