Loading pkgs/build-support/writers/test.nix +2 −8 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ , python3Packages , pypy3Packages , runCommand , testers , writers , writeText }: Loading Loading @@ -36,14 +37,7 @@ let let expectedFile = writeText "${file.name}-expected" expected; in runCommand "run-${file.name}" {} '' if ! diff -u ${file} ${expectedFile}; then echo 'test ${file.name} failed' exit 1 fi touch $out ''; testers.testEqualContents { expected = expectedFile; actual = file; assertion = "${file.name} matches"; }; in lib.recurseIntoAttrs { bin = lib.recurseIntoAttrs { Loading Loading
pkgs/build-support/writers/test.nix +2 −8 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ , python3Packages , pypy3Packages , runCommand , testers , writers , writeText }: Loading Loading @@ -36,14 +37,7 @@ let let expectedFile = writeText "${file.name}-expected" expected; in runCommand "run-${file.name}" {} '' if ! diff -u ${file} ${expectedFile}; then echo 'test ${file.name} failed' exit 1 fi touch $out ''; testers.testEqualContents { expected = expectedFile; actual = file; assertion = "${file.name} matches"; }; in lib.recurseIntoAttrs { bin = lib.recurseIntoAttrs { Loading