summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2012-02-03 16:12:05 +1100
committerJon Loeliger <jdl@jdl.com>2012-02-03 08:37:32 -0600
commita90b5b149197a8b38bd569c6a8abc9fc0363fa4b (patch)
treeffef35a01c944baeda4e5bb01f02f93aa1138b88 /tests
parent2ca83614e78f32e68202100e94668b0bb62f1ba6 (diff)
downloaddtc-a90b5b149197a8b38bd569c6a8abc9fc0363fa4b.tar.gz
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>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run_tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 2650559..37c173c 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -478,7 +478,7 @@ fdtput_tests () {
tac $base | tr a-z A-Z | sort -r >$bigfile2
# 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
# run_fdtput_test <test-name> <expected-result> <file> <key> <flags>