mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
tests: fix flake feature check
This commit is contained in:
parent
5dd5a26ccf
commit
47da3c88c7
1 changed files with 2 additions and 2 deletions
|
|
@ -24,10 +24,10 @@ def support_flakes() -> bool:
|
||||||
"--json",
|
"--json",
|
||||||
"--eval",
|
"--eval",
|
||||||
"--expr",
|
"--expr",
|
||||||
'(builtins.compareVersions "2.4" builtins.nixVersion) == 1',
|
"builtins ? getFlake",
|
||||||
]
|
]
|
||||||
proc = subprocess.run(cmd, text=True, capture_output=True, check=True)
|
proc = subprocess.run(cmd, text=True, capture_output=True, check=True)
|
||||||
return proc.stdout != "true"
|
return proc.stdout == "true"
|
||||||
|
|
||||||
|
|
||||||
class IntegrationTest(unittest.TestCase):
|
class IntegrationTest(unittest.TestCase):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue