mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2025-12-12 10:10:09 +01:00
chore: use set -x to show which line of "script" failed the test
This commit is contained in:
parent
5436abf377
commit
f59d92791b
1 changed files with 7 additions and 1 deletions
|
|
@ -32,7 +32,13 @@
|
|||
actualDrv = builtins.unsafeDiscardStringContext (actualDrv.drvPath or "");
|
||||
script =
|
||||
if script != null
|
||||
then builtins.unsafeDiscardStringContext (pkgs.writeShellScript "nixtest-${name}" script).drvPath
|
||||
then
|
||||
builtins.unsafeDiscardStringContext
|
||||
(pkgs.writeShellScript "nixtest-${name}" ''
|
||||
# show which line failed the test
|
||||
set -x
|
||||
${script}
|
||||
'').drvPath
|
||||
else null;
|
||||
pos =
|
||||
if pos == null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue