]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commita91d96d9a5b02329c9d4a526e0710ec34778a0e5
treec9298e538fb616468cf0eebeecbea240cd1b75b7
parentd315e8cfde3d0266a9db6ea3cf3ba8b49be8fc34
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