shellspec adds spec/support/bin to the path, so we can put scripts that
should always be available here.
Also don't source sxmo_common.sh in the helper, if scripts don't do it
themselves we shouldn't do it for them in the tests.
Signed-off-by: Anjandev Momi <anjan@momi.ca>
jk_000 on irc had a issue with the led script hanging, during the
process of debugging it it seemed to be looking for the led lock in
~/.local/run.
I don't know if this is related, but it should be changed now that we
make sure to always initialize XDG_RUNTIME_DIR, and don't use
.local/run.
v1 of this patch caused the tests to fail because XDG_RUNTIME_DIR isn't
set in the test environment. This sets it to a temporary directory
before the test run.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
The wait command will wait for all process known to the shell if no
arguments are passed, so in these cases looping does nothing.
Signed-off-by: Stacy Harper <contact@stacyharper.net>