Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #334995 from pbsds/fix-test-version-1723771306

authored by philiptaron.tngl.sh and committed by GitHub bc0fb46c 7c11ef08

+1 -1
+1 -1
pkgs/build-support/testers/default.nix
··· 67 command ? "${package.meta.mainProgram or package.pname or package.name} --version", 68 version ? package.version, 69 }: runCommand "${package.name}-test-version" { nativeBuildInputs = [ package ]; meta.timeout = 60; } '' 70 - if output=$(${command} 2>&1); then 71 if grep -Fw -- "${version}" - <<< "$output"; then 72 touch $out 73 else
··· 67 command ? "${package.meta.mainProgram or package.pname or package.name} --version", 68 version ? package.version, 69 }: runCommand "${package.name}-test-version" { nativeBuildInputs = [ package ]; meta.timeout = 60; } '' 70 + if output=$(${command} 2>&1 | sed -e 's|${builtins.storeDir}/[^/ ]*/|{{storeDir}}/|g'); then 71 if grep -Fw -- "${version}" - <<< "$output"; then 72 touch $out 73 else