tests: fix flake feature check

This commit is contained in:
Jörg Thalheim 2020-12-25 18:24:10 +01:00
parent 5dd5a26ccf
commit 47da3c88c7
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -24,10 +24,10 @@ def support_flakes() -> bool:
"--json",
"--eval",
"--expr",
'(builtins.compareVersions "2.4" builtins.nixVersion) == 1',
"builtins ? getFlake",
]
proc = subprocess.run(cmd, text=True, capture_output=True, check=True)
return proc.stdout != "true"
return proc.stdout == "true"
class IntegrationTest(unittest.TestCase):