From: Simon Glass <sjg@chromium.org>
Date: Mon, 27 Mar 2023 21:47:37 +0000 (+1300)
Subject: buildman: Correct overwriting of settings file
X-Git-Tag: v2025.01-rc5-pxa1908~1067^2~1
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/login.html?a=commitdiff_plain;h=49d8cc4cbe18c7ffdc7e9699b9b64545288ecb1f;p=u-boot.git

buildman: Correct overwriting of settings file

The toolchain test causes the settings file to be overwritten, which is
annoying for local development. Fix it by passing None as the filename.

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

diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py
index ea1ad1bcb8..6bae913197 100644
--- a/tools/buildman/toolchain.py
+++ b/tools/buildman/toolchain.py
@@ -420,7 +420,7 @@ class Toolchains:
         Returns:
             Resolved string
 
-        >>> bsettings.Setup()
+        >>> bsettings.Setup(None)
         >>> tcs = Toolchains()
         >>> tcs.Add('fred', False)
         >>> var_dict = {'oblique' : 'OBLIQUE', 'first' : 'fi${second}rst', \