[Buildbot-commits] [Buildbot] #2584: Invalid directory stack for suppression files

Buildbot trac trac at buildbot.net
Thu Nov 14 10:03:45 UTC 2013


#2584: Invalid directory stack for suppression files
----------------------+-----------------------
Reporter:  maleadt    |      Owner:
    Type:  undecided  |     Status:  new
Priority:  minor      |  Milestone:  undecided
 Version:  0.8.8      |   Keywords:
----------------------+-----------------------
 I'm currently trying to get a suppression file working, but I'm having
 some issues matching the filename. Looking at the source, Buildbot builds
 a directory stack using the following regex:
 {{{
 directoryEnterPattern = "make.*: Entering directory [\"`'](.*)['`\"]"
 }}}
 ... and building the directory stack like:
 {{{
 if directoryEnterRe:
     match = directoryEnterRe.search(line)
     if match:
         self.directoryStack.append(match.group(1))
         continue
 }}}

 Finally, the current directory is constructed using this directory stack:
 {{{
 currentDirectory = '/'.join(self.directoryStack)
 }}}


 However, make seems to print full paths each time it enters a directory:
 {{{
 make[3]: Entering directory
 `/srv/buildbot/slaves/phoenix/clang/build/dresc/archs/3MF'
 }}}

 Doesn't this cause the directory stack to contain full paths over and
 over, ultimately constructing an invalid file path?

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2584>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list