mirror of https://github.com/nirenjan/libx52.git
Use $(...) instead of `...` in test scripts
parent
23a980e250
commit
d53e56c491
|
@ -72,7 +72,7 @@ X52_MFD_LINE_2_CLR_INDEX='00dc'
|
||||||
find_programs()
|
find_programs()
|
||||||
{
|
{
|
||||||
# Tests and distcheck do not work on OSX, skip the tests
|
# Tests and distcheck do not work on OSX, skip the tests
|
||||||
if [[ `uname -s` == [Dd]arwin* ]]
|
if [[ $(uname -s) == [Dd]arwin* ]]
|
||||||
then
|
then
|
||||||
echo "1..0 # skip Tests not supported on OSX"
|
echo "1..0 # skip Tests not supported on OSX"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -16,7 +16,7 @@ brightness_test()
|
||||||
local index="\$X52_${unit}_BRIGHTNESS_INDEX"
|
local index="\$X52_${unit}_BRIGHTNESS_INDEX"
|
||||||
TEST_ID="Test setting $unit brightness to $bri"
|
TEST_ID="Test setting $unit brightness to $bri"
|
||||||
|
|
||||||
expect_pattern `eval echo $index` $bri
|
expect_pattern $(eval echo $index) $bri
|
||||||
|
|
||||||
$X52CLI bri $unit $bri
|
$X52CLI bri $unit $bri
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ indicator_test()
|
||||||
local value="\$X52_INDICATOR_STATE_${state}"
|
local value="\$X52_INDICATOR_STATE_${state}"
|
||||||
TEST_ID="Test setting $indicator $state"
|
TEST_ID="Test setting $indicator $state"
|
||||||
|
|
||||||
expect_pattern `eval echo $index $value`
|
expect_pattern $(eval echo $index $value)
|
||||||
|
|
||||||
$X52CLI $indicator $state
|
$X52CLI $indicator $state
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue