nixos/tests/searx: fix build
yq-go has been updated with breaking changes to the syntax.
This commit is contained in:
parent
ae82038d5f
commit
4ff48ea01c
@ -81,8 +81,9 @@ import ./make-test-python.nix ({ pkgs, ...} :
|
|||||||
base.wait_for_unit("searx-init")
|
base.wait_for_unit("searx-init")
|
||||||
base.wait_for_file("/run/searx/settings.yml")
|
base.wait_for_file("/run/searx/settings.yml")
|
||||||
output = base.succeed(
|
output = base.succeed(
|
||||||
"${pkgs.yq-go}/bin/yq r /run/searx/settings.yml"
|
"${pkgs.yq-go}/bin/yq eval"
|
||||||
" 'engines.(name==startpage).shortcut'"
|
" '.engines[] | select(.name==\"startpage\") | .shortcut'"
|
||||||
|
" /run/searx/settings.yml"
|
||||||
).strip()
|
).strip()
|
||||||
assert output == "start", "Settings not merged"
|
assert output == "start", "Settings not merged"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user