From: Jami Kettunen <jamipkettunen@gmail.com>
Otherwise running shellspec breaks due to things such as potentially
using a GNU coreutils find on different systems.
Signed-off-by: Jami Kettunen <jami.kettunen@protonmail.com>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
---
spec/spec_helper.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/spec/spec_helper.sh b/spec/spec_helper.sh
index 806f3dd..53c70ea 100644
--- a/spec/spec_helper.sh+++ b/spec/spec_helper.sh
@@ -7,6 +7,10 @@
# so it is better to set them here.
# set -eu
+# Include common aliases such as find='busybox find' to avoid breaking+# expected coreutils environment.+. scripts/core/sxmo_common.sh+# This callback function will be invoked only once before loading specfiles.
spec_helper_precheck() {
# Available functions: info, warn, error, abort, setenv, unsetenv
--
2.35.2
[PATCH sxmo-utils v3 2/2] add test to check if tests are ran with sxmo_common.sh loaded