| # Copyright 2020 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| """Verify the `histograms_index` file is up-to-date.""" |
| sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common')) |
| with open(histogram_paths.HISTOGRAMS_INDEX, 'r') as f: |
| histograms_paths = [os.path.normpath(line.strip()) for line in f] |
| os.path.normpath(p) for p in histogram_paths.HISTOGRAMS_XMLS_RELATIVE |
| if histograms_paths != new_histograms_paths: |
| 'histograms_index.txt is not up-to-date. Please run ' |
| 'python histogram_paths.py to update it.') |
| if __name__ == '__main__': |