projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: test: handle env variables undefined
[lttng-tools.git]
/
tests
/
utils
/
utils.sh
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index 42b344138d9f176ef2fcb39e37fbec9acc2e994b..da23f7abeb1780191b86e41a0a88219fd32eeb56 100644
(file)
--- a/
tests/utils/utils.sh
+++ b/
tests/utils/utils.sh
@@
-86,6
+86,16
@@
function randstring()
echo
}
echo
}
+# Return the number of _configured_ CPUs.
+function conf_proc_count()
+{
+ getconf _NPROCESSORS_CONF
+ if [ $? -ne 0 ]; then
+ diag "Failed to get the number of configured CPUs"
+ fi
+ echo
+}
+
function enable_kernel_lttng_event
{
local expected_to_fail="$1"
function enable_kernel_lttng_event
{
local expected_to_fail="$1"
This page took
0.027197 seconds
and
5
git commands to generate.