projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: lttng_snapshot_add_output_ok: allow specifying output type
[lttng-tools.git]
/
tests
/
utils
/
utils.sh
diff --git
a/tests/utils/utils.sh
b/tests/utils/utils.sh
index a8b9b3bdf5e76718f0aca85991868809a3ed9eda..9df9a0bf0985fed35cdf2da8c9dc79cbbbef14b0 100644
(file)
--- a/
tests/utils/utils.sh
+++ b/
tests/utils/utils.sh
@@
-1369,14
+1369,15
@@
function lttng_snapshot_add_output ()
local expected_to_fail=$1
local sess_name=$2
local trace_path=$3
local expected_to_fail=$1
local sess_name=$2
local trace_path=$3
+ local opts=$4
- $TESTDIR/../src/bin/lttng/$LTTNG_BIN snapshot add-output -s $sess_name $trace_path 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST
+ $TESTDIR/../src/bin/lttng/$LTTNG_BIN snapshot add-output -s $sess_name $trace_path
$opts
1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST
ret=$?
if [[ $expected_to_fail -eq 1 ]]; then
test "$ret" -ne "0"
ret=$?
if [[ $expected_to_fail -eq 1 ]]; then
test "$ret" -ne "0"
- ok $? "Added snapshot output
file://
$trace_path failed as expected"
+ ok $? "Added snapshot output $trace_path failed as expected"
else
else
- ok $ret "Added snapshot output
file://
$trace_path"
+ ok $ret "Added snapshot output $trace_path"
fi
}
fi
}
This page took
0.026627 seconds
and
5
git commands to generate.