The 'source' command is a bashism, and not in the POSIX standard. So
it fails when using POSIX compliant shell such as Dash which is the
default on Debian. Using the '.' command is equivalent to using
source, and is POSIX compliant.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
In case lava-test-command is not available, emulate what it is
supposed to do. This is a convenient hack to make it easier to run
bootrr locally for debug/testing purpose.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
The helpers assume that bootrr script is located in /usr/bin, which is
not always the case, especially when one needs to run the test locally
from the git tree.
'source' command will search for files using $PATH. When bootrr
scripts are installed globally using 'make install' they will be
found. When running them from a local folder, setting PATH to include
<bootrr>/helpers will ensure that all scripts will be found.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Both Niklas and myself added checks for these and I merged both patches,
let's drop one of them.
Reported-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Now that we're getting all the pieces in place for PCIe upstream let's
test for the ethernet and wlan showing up on db820c.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Drivers for hardware on dynamically probed busses might take a while to
autoload, so add support for specifying a timeout for these.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Use bootrr helpers to support waiting for some time for the partition to
appear before giving up. This removes the need for putting an explicit
sleep in the test script.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Move the common functions to a helper and use this from
assert_device_present.
Make assert_device_present accept a fourth parameter for a timeout,
which will cause the assert to wait for the given amount of time for the
device to appear.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>