diff mbox series

[U-Boot,v2,24/37] binman: Drop unnecessary debug handling

Message ID 20190708191856.138863-25-sjg@chromium.org
State Accepted
Commit 9382bb873b627e5ce660ab3e8385a90460a0df2c
Delegated to: Simon Glass
Headers show
Series binman: Add CBFS support | expand

Commit Message

Simon Glass July 8, 2019, 7:18 p.m. UTC
The -D option enables debug mode, but we only need to add -D to the
command line once. Drop the duplicate code. Also drop the comment about
enabling debugging since this can be done with -D.

Signed-off-by: Simon Glass <sjg@chromium.org>

---

Changes in v2: None

 tools/binman/binman.py | 5 -----
 1 file changed, 5 deletions(-)

Comments

Simon Glass July 18, 2019, 1:59 a.m. UTC | #1
The -D option enables debug mode, but we only need to add -D to the
command line once. Drop the duplicate code. Also drop the comment about
enabling debugging since this can be done with -D.

Signed-off-by: Simon Glass <sjg@chromium.org>

---

Changes in v2: None

 tools/binman/binman.py | 5 -----
 1 file changed, 5 deletions(-)

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/tools/binman/binman.py b/tools/binman/binman.py
index 05aeaecd8f3..bab98826dc6 100755
--- a/tools/binman/binman.py
+++ b/tools/binman/binman.py
@@ -71,8 +71,6 @@  def RunTests(debug, processes, args):
     sys.argv = [sys.argv[0]]
     if debug:
         sys.argv.append('-D')
-    if debug:
-        sys.argv.append('-D')
 
     # Run the entry tests first ,since these need to be the first to import the
     # 'entry' module.
@@ -151,9 +149,6 @@  def RunBinman(options, args):
     """
     ret_code = 0
 
-    # For testing: This enables full exception traces.
-    #options.debug = True
-
     if not options.debug:
         sys.tracebacklimit = 0