This removes instability in the running order of tests with multiple
variations.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
res = tests
# Sort the results
- res = sorted(res, key = lambda test: test.env) # by environment second
- res = sorted(res, key = lambda test: test.name) # by name first
+ res = sorted(res, key = lambda test: test.variation) # by variation third
+ res = sorted(res, key = lambda test: test.env) # by environment second
+ res = sorted(res, key = lambda test: test.name) # by name first
return res