зеркало из https://github.com/github/vitess-gh.git
18 строки
384 B
Bash
Executable File
18 строки
384 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source build.env
|
|
|
|
first_output=$(git status --porcelain)
|
|
|
|
make vtadmin_authz_testgen
|
|
|
|
second_output=$(git status --porcelain)
|
|
|
|
diff=$(diff <( echo "$first_output") <( echo "$second_output"))
|
|
|
|
if [[ "$diff" != "" ]]; then
|
|
echo "ERROR: Regenerated vtadmin_test files do not match the current version."
|
|
echo -e "List of files containing differences:\n$diff"
|
|
exit 1
|
|
fi
|