mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-23 17:31:11 +01:00
tests/radicle: stub radicle-node
Failing build is blocking CI, test only verifies generated config. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
33cfb19226
commit
dad1b85a03
1 changed files with 12 additions and 2 deletions
|
|
@ -1,9 +1,19 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
programs.radicle.enable = true;
|
programs.radicle.enable = true;
|
||||||
|
|
||||||
|
test.stubs.radicle-node = {
|
||||||
|
buildScript = ''
|
||||||
|
mkdir -p "$out/bin"
|
||||||
|
cat > "$out/bin/rad" << 'EOF'
|
||||||
|
#!/bin/sh
|
||||||
|
# Stub rad command that does nothing
|
||||||
|
exit 0
|
||||||
|
EOF
|
||||||
|
chmod +x "$out/bin/rad"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileContent \
|
assertFileContent \
|
||||||
home-files/.radicle/config.json \
|
home-files/.radicle/config.json \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue