Tests: sink.text.pretty: Add unit tests for enum fields printing
[babeltrace.git] / tests / utils / python / split_sort_compare.py
CommitLineData
ed30eb8d
GB
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Copyright (C) 2020 Francis Deslauriers <francis.deslauriers@efficios.com>
4
5import sys
6import re
7
8
9def main():
10 expected = sys.argv[1]
11 actual = sys.argv[2]
12 sorted_expected = ''.join(sorted(re.findall(r'\w+|\W+', expected.strip())))
13 sorted_actual = ''.join(sorted(re.findall(r'\w+|\W+', actual.strip())))
14
15 if sorted_expected == sorted_actual:
16 status = 0
17 else:
18 status = 1
19
20 sys.exit(status)
21
22
23if __name__ == '__main__':
24 main()
This page took 0.02369 seconds and 4 git commands to generate.