Also disables dmcache tests on non-linux. (cherry picked from commit f0db4fd901)
f0db4fd901
Added unit tests for the changes Fixes #1904