fix: allow snapshots to use actualDrv aswell

This commit is contained in:
technofab 2025-05-04 01:11:20 +02:00
parent 482f15c486
commit abac8aaf3e
3 changed files with 21 additions and 11 deletions

View file

@ -52,6 +52,7 @@
}
{
name = "fail";
pos = __curPos;
expected = 0;
actual = "meow";
}
@ -61,11 +62,20 @@
pos = __curPos;
actual = "test";
}
{
name = "test-snapshot-drv";
type = "snapshot";
pos = __curPos;
actualDrv = pkgs.runCommand "test-snapshot" {} ''
echo '"snapshot drv"' > $out
'';
}
];
"other-suite" = [
{
name = "obj-snapshot";
type = "snapshot";
pos = __curPos;
actual = {hello = "world";};
}
{