Correct paths in test.sh.

Change-Id: I94fda27e4401a71242ec202dcd50591d0e4ddbb4
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
Pawel Cieslak 2020-01-30 12:23:09 +01:00 committed by sys_ocldev
parent 8fd1e8c511
commit 76400ff32f
1 changed files with 5 additions and 3 deletions

View File

@ -11,16 +11,18 @@
# diff output is printed
#
script_directory=$(dirname "$0")
python_interpreter="python3"
if [[ "$OSTYPE" == "msys" ]]; then
python_interpreter="python"
fi
$python_interpreter ../../lint/set_copyright.py in/*
$python_interpreter "${script_directory}/../../lint/set_copyright.py" "${script_directory}"/in/*
for i in in/*
for i in "${script_directory}"/in/*
do
fn=$(basename $i)
diff -du in/$fn out/$fn
diff -du "${script_directory}/in/${fn}" "${script_directory}/out/${fn}"
done