Index: tests/server/ui/Inputs/last-run-report.json =================================================================== --- /dev/null +++ tests/server/ui/Inputs/last-run-report.json @@ -0,0 +1,38 @@ +{ + "generated_by": "LNT Server v0.4.2.dev0", + "machine": { + "id": 4, + "name": "e105293.local__clang_DEV__x86_64" + }, + "run": { + "start_time": "2020-09-11T12:01:10", + "end_time": "2020-09-11T12:02:19", + "order_by": "llvm_project_revision", + "llvm_project_revision": "154338", + "tag": "nts" + }, + "tests": [ + { + "name": "unique-name-wreodfpj", + "compile_status": "0", + "compile_time": "1.3", + "execution_status": "0", + "execution_time": "1.4", + "hash_status": "0", + "hash": "fedcba", + "score": 18, + "code_size": 10126 + }, + { + "name": "unique-name-lowrf", + "compile_status": "0", + "compile_time": "1.3", + "execution_status": "0", + "execution_time": "1.4", + "hash_status": "0", + "hash": "fedcba", + "score": 18, + "code_size": 10126 + } + ] +} Index: tests/server/ui/V4Pages.py =================================================================== --- tests/server/ui/V4Pages.py +++ tests/server/ui/V4Pages.py @@ -12,6 +12,11 @@ # Import a profile # RUN: lnt import %t.instance %{shared_inputs}/profile-report.json # +# Import last run. The run in this report must be the most recent one and the +# tests inside unique to test the comparator used when sorting the tests per +# regression status in the global status page. +# RUN: lnt import %t.instance %S/Inputs/last-run-report.json +# # RUN: lnt import %t.instance %S/Inputs/sample-failed-report1.json # RUN: lnt import %t.instance %S/Inputs/sample-failed-report2.json #