Bug 1615150 - Drive-by fix error reporting in diffoscope tasks failure summary. r=dmajor

As opposed to what was intended, the directories weren't eliminated
correctly.

Differential Revision: https://phabricator.services.mozilla.com/D62700

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Hommey 2020-02-13 22:11:03 +00:00
parent 8eb5b272db
commit a9be7e5ac6

View File

@ -71,7 +71,7 @@ report_error() {
path.append(None)
path_ = [p for p in path if p]
full_path = '/'.join(path_)
parent_path = '/'.join(path_[:1])
parent_path = '/'.join(path_[:-1])
if parent_path in paths:
paths.remove(parent_path)
if full_path: