diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2015-03-26 13:25:29 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2015-03-26 13:25:29 +0100 |
commit | 412ad4b17e9edba98faff1b9c872282a06d6235f (patch) | |
tree | 89788f9594aba0f714addf4f289fbcd489f6be41 /app/utils/report/boot.py | |
parent | 08b3edfbece390d82d69a65b221f6f6456d7f35f (diff) |
Force sort on defconfigs and boards in emails.
Diffstat (limited to 'app/utils/report/boot.py')
-rw-r--r-- | app/utils/report/boot.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/app/utils/report/boot.py b/app/utils/report/boot.py index e47a97f..db425f1 100644 --- a/app/utils/report/boot.py +++ b/app/utils/report/boot.py @@ -731,13 +731,21 @@ def _parse_and_write_results(m_string, **kwargs): m_string.write(u"\n") m_string.write(G_(u"%s:\n") % arch) - for defconfig in d_get(arch).viewkeys(): + # Force defconfs to be sorted. + defconfs = list(d_get(arch).viewkeys()) + defconfs.sort() + + for defconfig in defconfs: m_string.write(u"\n") m_string.write(G_(u" %s:\n") % defconfig) def_get = d_get(arch)[defconfig].get + # Force boards to be sorted. + boards = list(d_get(arch)[defconfig].viewkeys()) + boards.sort() + if is_conflict: - for board in d_get(arch)[defconfig].viewkeys(): + for board in boards: m_string.write(G_(u" %s:\n") % board) for lab in def_get(board).viewkeys(): @@ -747,7 +755,7 @@ def _parse_and_write_results(m_string, **kwargs): else: # Not a conflict data structure, we show only the count of # the failed labs, not which one failed. - for board in d_get(arch)[defconfig].viewkeys(): + for board in boards: lab_count = 0 for lab in def_get(board).viewkeys(): lab_count += 1 |