diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2024-01-29 10:25:34 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2024-01-29 10:26:20 +0000 |
commit | c1d3b6b7ba087096a5d1b57773aba7eaa09ba7b0 (patch) | |
tree | 429003d5f1312981f340ceb970dd18b43b5d0bc6 /pkgs/build-support | |
parent | 3b0201816178b4eebb20ba7996ff5bab223ddcac (diff) | |
download | nixlib-c1d3b6b7ba087096a5d1b57773aba7eaa09ba7b0.tar nixlib-c1d3b6b7ba087096a5d1b57773aba7eaa09ba7b0.tar.gz nixlib-c1d3b6b7ba087096a5d1b57773aba7eaa09ba7b0.tar.bz2 nixlib-c1d3b6b7ba087096a5d1b57773aba7eaa09ba7b0.tar.lz nixlib-c1d3b6b7ba087096a5d1b57773aba7eaa09ba7b0.tar.xz nixlib-c1d3b6b7ba087096a5d1b57773aba7eaa09ba7b0.tar.zst nixlib-c1d3b6b7ba087096a5d1b57773aba7eaa09ba7b0.zip |
build-support/testers: don't fail the test on empty list of pkg-config modules
Without the change tests like `xorg.imake.tests.pkg-config` fail as: $ nix build --no-link -f. -L xorg.imake.tests.pkg-config error: builder for '/nix/store/i3zb1ykjzm0622497cn4dvifk36sx00r-check-pkg-config-.drv' failed to produce output path for output 'out' at '/nix/store/i3zb1ykjzm0622497cn4dvifk36sx00r-check-pkg-config-.drv.chroot/nix/store/63y92rvkp7gzzp0hlcjyj92srzjwndrq-check-pkg-config-' error: 1 dependencies of derivation '/nix/store/8qycf49a4h9jj2662d9cf4d56aq6djjj-check-meta-pkg-config-modules-for-imake-1.0.9.drv' failed to build Let's always produce empty output for zero-modules tests.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/testers/hasPkgConfigModules/tester.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/testers/hasPkgConfigModules/tester.nix b/pkgs/build-support/testers/hasPkgConfigModules/tester.nix index 755559038271..137739a1b48a 100644 --- a/pkgs/build-support/testers/hasPkgConfigModules/tester.nix +++ b/pkgs/build-support/testers/hasPkgConfigModules/tester.nix @@ -30,6 +30,7 @@ runCommand testName { } package.meta; } '' + touch "$out" for moduleName in $moduleNames; do echo "checking pkg-config module $moduleName in $buildInputs" set +e |