Skip to content

Commit 76400ff

Browse files
Correct paths in test.sh.
Change-Id: I94fda27e4401a71242ec202dcd50591d0e4ddbb4 Signed-off-by: Pawel Cieslak <[email protected]>
1 parent 8fd1e8c commit 76400ff

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/tests/copyright/test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@
1111
# diff output is printed
1212
#
1313

14+
script_directory=$(dirname "$0")
15+
1416
python_interpreter="python3"
1517

1618
if [[ "$OSTYPE" == "msys" ]]; then
1719
python_interpreter="python"
1820
fi
1921

20-
$python_interpreter ../../lint/set_copyright.py in/*
22+
$python_interpreter "${script_directory}/../../lint/set_copyright.py" "${script_directory}"/in/*
2123

22-
for i in in/*
24+
for i in "${script_directory}"/in/*
2325
do
2426
fn=$(basename $i)
25-
diff -du in/$fn out/$fn
27+
diff -du "${script_directory}/in/${fn}" "${script_directory}/out/${fn}"
2628
done

0 commit comments

Comments
 (0)