mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Small changes in response to review.
This commit is contained in:
parent
e149f02344
commit
0641253ae6
@ -140,7 +140,7 @@ let
|
|||||||
name = "${pname}-interactive-environment";
|
name = "${pname}-interactive-environment";
|
||||||
nativeBuildInputs = [ wrappedRuby basicEnv ];
|
nativeBuildInputs = [ wrappedRuby basicEnv ];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export OLD_IRBRC="$IRBRC"
|
export OLD_IRBRC=$IRBRC
|
||||||
export IRBRC=${irbrc}
|
export IRBRC=${irbrc}
|
||||||
'';
|
'';
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
pwd
|
cd $(dirname $0)
|
||||||
find . -name text.nix
|
find . -name text.nix
|
||||||
testfiles=$(find . -name test.nix)
|
testfiles=$(find . -name test.nix)
|
||||||
nix-build -E "with import <nixpkgs> {}; callPackage testing/driver.nix { testFiles = [ $testfiles ]; }" --show-trace && cat result
|
nix-build -E "with import <nixpkgs> {}; callPackage testing/driver.nix { testFiles = [ $testfiles ]; }" --show-trace && cat result
|
||||||
|
@ -5,8 +5,8 @@ let
|
|||||||
testLine = report: "${okStr report} ${toString (report.index + 1)} ${report.description}" + testDirective report + testYaml report;
|
testLine = report: "${okStr report} ${toString (report.index + 1)} ${report.description}" + testDirective report + testYaml report;
|
||||||
|
|
||||||
# These are part of the TAP spec, not yet implemented.
|
# These are part of the TAP spec, not yet implemented.
|
||||||
|
#c.f. https://github.com/NixOS/nixpkgs/issues/27071
|
||||||
testDirective = report: "";
|
testDirective = report: "";
|
||||||
|
|
||||||
testYaml = report: "";
|
testYaml = report: "";
|
||||||
|
|
||||||
okStr = { result, ...}: if result == "pass" then "ok" else "not ok";
|
okStr = { result, ...}: if result == "pass" then "ok" else "not ok";
|
||||||
|
Loading…
Reference in New Issue
Block a user