mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
tests/functional/lang: Add post processing and remove certain line numbers
This commit is contained in:
parent
74698d54c8
commit
f9a1d6b018
3 changed files with 37 additions and 13 deletions
9
tests/functional/lang/eval-fail-derivation-name.postprocess
Executable file
9
tests/functional/lang/eval-fail-derivation-name.postprocess
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
testcaseBasename=$1
|
||||
|
||||
# Line numbers change when derivation.nix docs are updated.
|
||||
sed -i "$testcaseBasename.err" \
|
||||
-e 's/[0-9 ][0-9 ][0-9 ][0-9 ][0-9 ][0-9 ][0-9 ][0-9]\([^0-9]\)/<number>\1/g' \
|
||||
-e 's/[0-9][0-9]*/<number>/g' \
|
||||
;
|
Loading…
Add table
Add a link
Reference in a new issue