summaryrefslogtreecommitdiff
path: root/units/i2c
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2020-07-20 11:34:31 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2020-07-20 11:34:31 +0200
commit8a3b91717ebc73e9b7fb0d89322f869cf9d3dd0c (patch)
tree3b5edfcc9ee2cf5d53c3af177ce6acd9ac4b9d02 /units/i2c
parentfd86326878ebbacab583c72428503eb36c8cbcb9 (diff)
units:i2c: Fix shellcheck error (detected on xenial/bionic only)
Diffstat (limited to 'units/i2c')
-rw-r--r--units/i2c/jobs.pxu2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/i2c/jobs.pxu b/units/i2c/jobs.pxu
index bf692b4..b0ff9d7 100644
--- a/units/i2c/jobs.pxu
+++ b/units/i2c/jobs.pxu
@@ -15,7 +15,7 @@ _steps:
2. If expected i2c bus number is not set, this job will pass if system
detected there's at least one i2c bus.
command:
- if [ -z ${I2C_BUS_NUMBER+x} ]; then
+ if [ -z "${I2C_BUS_NUMBER+x}" ]; then
i2c_driver_test.py bus
else
i2c_driver_test.py bus -b "$I2C_BUS_NUMBER"