mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Better test reverse (#1207)
* Again fix test 00501_http_head * Better test reverse * Fix test reverse sort * Update clickhouse-test
This commit is contained in:
parent
76957f77c4
commit
ea19c4494f
@ -93,7 +93,12 @@ def main(args):
|
|||||||
print("Won't run stateful tests because test data wasn't loaded. See README.txt.")
|
print("Won't run stateful tests because test data wasn't loaded. See README.txt.")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for case in sorted(filter(lambda case: re.search(args.test, case) if args.test else True, os.listdir(suite_dir))):
|
# Reverse sort order: we want run newest test first.
|
||||||
|
# And not reverse subtests
|
||||||
|
def key_func(item):
|
||||||
|
prefix, suffix = item.split('_', 1)
|
||||||
|
return -int(prefix), suffix
|
||||||
|
for case in sorted(filter(lambda case: re.search(args.test, case) if args.test else True, os.listdir(suite_dir)), key=key_func):
|
||||||
if SERVER_DIED:
|
if SERVER_DIED:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user