aboutsummaryrefslogtreecommitdiff
path: root/tools/validate-all-json.sh
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-01-20 17:44:06 +0000
committerGerrit Code Review <review@openstack.org>2015-01-20 17:44:06 +0000
commit671d21d7c2f57bcfcb91c412de61b0c7ec29e792 (patch)
treeb419e462d6cecf22c96ae3dd44e6320bf77ae4c1 /tools/validate-all-json.sh
parent6772962c725c5f1f6bf580461b915949db84f802 (diff)
parent13799455c20074cad967a0b6fbe50b883163b4fd (diff)
downloadkolla-671d21d7c2f57bcfcb91c412de61b0c7ec29e792.tar.gz
kolla-671d21d7c2f57bcfcb91c412de61b0c7ec29e792.zip
Merge "Make scripts work on latest Atomic images"
Diffstat (limited to 'tools/validate-all-json.sh')
-rwxr-xr-xtools/validate-all-json.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/validate-all-json.sh b/tools/validate-all-json.sh
index ce85fadd6..87f1a9918 100755
--- a/tools/validate-all-json.sh
+++ b/tools/validate-all-json.sh
@@ -1,9 +1,8 @@
#!/bin/sh
-TOPLEVEL=$(git rev-parse --show-toplevel)
+REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
+cd "$(dirname "$REAL_PATH")/.."
-cd $TOPLEVEL
-
-git ls-files -z '*.json' |
+find . -name '*.json' -print0 |
xargs -0 python tools/validate-json.py || exit 1