projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Tests: utils.sh: fix unbound variable
[lttng-tools.git]
/
tests
/
utils
/
utils.sh
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index 5de6d26a896024e3c205cdd7cbe64f03a5284fcd..57e90fce9012ba10a8bee7290fc7a30aa7bf16bb 100644
(file)
--- a/
tests/utils/utils.sh
+++ b/
tests/utils/utils.sh
@@
-46,7
+46,7
@@
export LTTNG_SESSIOND_PATH="/bin/true"
source $TESTDIR/utils/tap/tap.sh
source $TESTDIR/utils/tap/tap.sh
-if [ -z $
LTTNG_TEST_TEARDOWN_TIMEOUT
]; then
+if [ -z $
{LTTNG_TEST_TEARDOWN_TIMEOUT+x}
]; then
LTTNG_TEST_TEARDOWN_TIMEOUT=60
fi
LTTNG_TEST_TEARDOWN_TIMEOUT=60
fi
@@
-66,6
+66,7
@@
function full_cleanup ()
# The '-' before the pid number ($$) indicates 'kill' to signal the
# whole process group.
trap - SIGTERM && kill -- -$$
# The '-' before the pid number ($$) indicates 'kill' to signal the
# whole process group.
trap - SIGTERM && kill -- -$$
+ exit 1
}
function null_pipes ()
}
function null_pipes ()
@@
-1685,7
+1686,7
@@
function regenerate_statedump ()
test "$ret" -ne "0"
ok $? "Expected fail on regenerate statedump $sess_name"
else
test "$ret" -ne "0"
ok $? "Expected fail on regenerate statedump $sess_name"
else
- ok $ret "
Metadata
regenerate $sess_name"
+ ok $ret "
Statedump
regenerate $sess_name"
fi
}
fi
}
This page took
0.024214 seconds
and
4
git commands to generate.