Add support for marking a ref test as flaky on cpu and/or gpu.
Merge pull request #2940 from glennw/reftest-conditions

Add support for marking a ref test as flaky on cpu and/or gpu.