mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2025-12-12 02:00:18 +01:00
fix: allow snapshots to use actualDrv aswell
This commit is contained in:
parent
482f15c486
commit
abac8aaf3e
3 changed files with 21 additions and 11 deletions
10
flake.nix
10
flake.nix
|
|
@ -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";};
|
||||
}
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue