summaryrefslogtreecommitdiff
path: root/tools/patman/tools.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 12:24:07 -0600
committerSimon Glass <sjg@chromium.org>2019-07-29 09:38:06 -0600
commit313533018dc175a5552a8ccac9d6bcd780e824df (patch)
tree83fc20c33ed4a82686e875192f7806aa01e80822 /tools/patman/tools.py
parenteb0f4a4cb40264a90a91e10e3ec00d1e0da7fb66 (diff)
patman: Reset the output directory when it is removed
At present outdir remains set ever after the output directory has been removed. Fix this to avoid trying to access it when it is not present. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/tools.py')
-rw-r--r--tools/patman/tools.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patman/tools.py b/tools/patman/tools.py
index d615227482..0d4705db76 100644
--- a/tools/patman/tools.py
+++ b/tools/patman/tools.py
@@ -83,6 +83,7 @@ def FinaliseOutputDir():
"""Tidy up: delete output directory if temporary and not preserved."""
if outdir and not preserve_outdir:
_RemoveOutputDir()
+ outdir = None
def GetOutputFilename(fname):
"""Return a filename within the output directory.
@@ -101,6 +102,7 @@ def _FinaliseForTest():
if outdir:
_RemoveOutputDir()
+ outdir = None
def SetInputDirs(dirname):
"""Add a list of input directories, where input files are kept.