dtoc: Hide the test options unless test code is available
authorSimon Glass <sjg@chromium.org>
Fri, 24 Feb 2023 01:18:14 +0000 (18:18 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Mar 2023 19:40:49 +0000 (11:40 -0800)
commitab9272b8042db7e3f26b495635c20cbbe439ce42
treeb5eec4c1879dde32b23023329ae1a05909623846
parent0de2ffe717766c16f66775abf95d623f15489e83
dtoc: Hide the test options unless test code is available

It doesn't make much sense to expose tests when dtoc is running
outside of the U-Boot git checkout. Hide the option in this case.

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