(lpz@ I have a question for you at the bottom of this email.)
Thanks everyone for the feedback.
Now I think we probably should not have another type of test suite, but support some features of physical test suite under the current virtual test suite framework.
My proposals are:
1. Support virtual test suite without a "base" for tests that need special flags, like the following in VirtualTestSuites (e.g. for tests that require overlay scrollbars):
{
"prefix": "overlay-scrollbars",
"args": ["--enable-features=OverlayScrollbar"],
}
This basically an alternative of physical test suite that requires the "virtual" prefix to explicitly indicate that the tests run with the special args, instead of magically applying the args.
Alternatively, we can use a special "base" (which requires no modification to the current blinkpy code), like
{
"prefix": "overlay-scrollbars",
"base": "tests",
"args": ["--enable-features=OverlayScrollbar"],
}
2. Move base tests that run also under a virtual test suite but are only meaningful under the virtual test suite, into the virtual test directory. This avoids multi-place test configurations, and shortens virtual test and baseline path names, to reduce the chance of too-long filenames on Windows.
For example,
- Move all tests that are valid only under virtual/not-site-per-process into the virtual directory to simply test configurations;
- Move paint/dark-mode to virtual/dark-mode-*, so that virtual/dark-mode/paint/dark-mode/grayscale-images/ will become virtual/dark-mode-grascale-images/ which has much shorter path names, and avoid running dark-mode tests under non-dark-mode configuration.
However, virtual test suites seem still awkward for WPT tests that require special flags. lpz@, is there a plan to address the issue in the new run_wpt_tests.py design?
Thanks,
Xianzhu