Unverified Commit bc0fb46c authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

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

parents 7c11ef08 ecb342fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@
      command ? "${package.meta.mainProgram or package.pname or package.name} --version",
      version ? package.version,
    }: runCommand "${package.name}-test-version" { nativeBuildInputs = [ package ]; meta.timeout = 60; } ''
      if output=$(${command} 2>&1); then
      if output=$(${command} 2>&1 | sed -e 's|${builtins.storeDir}/[^/ ]*/|{{storeDir}}/|g'); then
        if grep -Fw -- "${version}" - <<< "$output"; then
          touch $out
        else