summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2024-02-27 12:16:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-12 18:04:02 +0100
commit7544ef4c4955782692189371803da07549f63d15 (patch)
tree834a0c3b1b52076dc603a1fe4b98b7decea30456
parent2292c6180551e6c55dcd4296e4321463ebe29071 (diff)
downloadpoky-7544ef4c4955782692189371803da07549f63d15.tar.gz
meta/lib/oe/sstatesig.py: do not error out if sstate files fail on os.stat()
There's an ongoing issue with the autobuilder NFS: https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6463/steps/14/logs/stdio The file entry exists, but os.stat returns a 'file not found; error. It's not clear how and why such entries appear, but they do produce printdiff test failures and should not be relevant in context of the printdiff. (From OE-Core rev: 7547816bb2fd7028a46b7494ddd3ccf437979850) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/sstatesig.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index a46e5502ab..5950b3e0e6 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -431,7 +431,10 @@ def find_siginfo(pn, taskname, taskhashlist, d):
431 actual_hashval = get_hashval(fullpath) 431 actual_hashval = get_hashval(fullpath)
432 if actual_hashval in hashfiles: 432 if actual_hashval in hashfiles:
433 continue 433 continue
434 hashfiles[actual_hashval] = {'path':fullpath, 'sstate':True, 'time':get_time(fullpath)} 434 try:
435 hashfiles[actual_hashval] = {'path':fullpath, 'sstate':True, 'time':get_time(fullpath)}
436 except FileNotFoundError:
437 bb.warn("Could not obtain mtime for {}".format(fullpath))
435 438
436 return hashfiles 439 return hashfiles
437 440