Missing check for running on Linux in earlier commit

After merging this change on my Windows machine, I realized that the check for running on Linux was not working. The tests were ignored on all platforms, not just Linux.

The added commit fixes this, generating tests that are ignored only on Linux. I have tested in both environments.