Remove bashism from run_tests.sh
The patches introducing fdtget and fdtput inserted a peculiar bashism to run_tests.sh using non-portable assignment within an (( )) expression. This patch fixes it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>main
parent
2ca83614e7
commit
a90b5b1491
|
@ -478,7 +478,7 @@ fdtput_tests () {
|
||||||
tac $base | tr a-z A-Z | sort -r >$bigfile2
|
tac $base | tr a-z A-Z | sort -r >$bigfile2
|
||||||
|
|
||||||
# Allow just enough space for both file1 and file2
|
# Allow just enough space for both file1 and file2
|
||||||
(( space = $(stat -c %s $file1) + $(stat -c %s $file2) ))
|
space=$(( $(stat -c %s $file1) + $(stat -c %s $file2) ))
|
||||||
$DTC -O dtb -p $space -o $file ${file%.dtb}.dts 2>/dev/null
|
$DTC -O dtb -p $space -o $file ${file%.dtb}.dts 2>/dev/null
|
||||||
|
|
||||||
# run_fdtput_test <test-name> <expected-result> <file> <key> <flags>
|
# run_fdtput_test <test-name> <expected-result> <file> <key> <flags>
|
||||||
|
|
Loading…
Reference in New Issue