mirror of https://github.com/citusdata/citus.git
Ensure that only normalized test output is commited
parent
8fae3ed800
commit
9a819d401a
|
@ -34,6 +34,12 @@ jobs:
|
|||
- run:
|
||||
name: 'Check if changed'
|
||||
command: git diff --cached --exit-code
|
||||
- run:
|
||||
name: 'Normalize test output'
|
||||
command: ci/normalize_expected.sh
|
||||
- run:
|
||||
name: 'Check if changed'
|
||||
command: git diff --cached --exit-code
|
||||
check-sql-snapshots:
|
||||
docker:
|
||||
- image: 'citus/extbuilder:latest'
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
for f in $(git ls-tree -r HEAD --name-only src/test/regress/expected/*.out); do
|
||||
sed -Ef src/test/regress/bin/normalize.sed < "$f" > "$f.modified"
|
||||
mv "$f.modified" "$f"
|
||||
done
|
Loading…
Reference in New Issue