tests: make test names in plugins/flt.utils.trimmer/test_trimming unique
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 9 Oct 2019 19:45:51 +0000 (15:45 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 17 Oct 2019 16:13:26 +0000 (12:13 -0400)
Change-Id: I1f1e4ef2a8eaa79704848a765f0bc209e7ee4b92
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2163
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
tests/plugins/flt.utils.trimmer/test_trimming

index b1e267a0894ff891c20d00a5345b498b5bb5bfcc..cf83a7809996de2e5f1a7b784925f446a43820e0 100755 (executable)
@@ -40,6 +40,7 @@ function run_test
 {
        local begin_time="$1"
        local end_time="$2"
+       # with_stream_msgs_cs is set to "true" or "false" by the tests.
        local local_args=(
                "--plugin-path" "$data_dir"
                "-c" "src.test-trimmer.TheSourceOfAllEvil"
@@ -48,11 +49,17 @@ function run_test
                "--params=compact=true,with-metadata=false"
        )
 
+       if [ "$with_stream_msgs_cs" = "true" ]; then
+               test_name="with stream message clock snapshots"
+       else
+               test_name="without stream message clock snapshots"
+       fi
+
        if [ -n "$begin_time" ]; then
                local_args+=("--begin=$begin_time")
-               test_name="with --begin=$begin_time"
+               test_name="$test_name, with --begin=$begin_time"
        else
-               test_name="without --begin"
+               test_name="$test_name, without --begin"
        fi
 
        if [ -n "$end_time" ]; then
@@ -62,8 +69,6 @@ function run_test
                test_name="$test_name, without --end"
        fi
 
-       # with_stream_msgs_cs is set to "true" or "false" by the tests.
-
        bt_diff_cli "$temp_stdout_expected" "$temp_stderr_expected" "${local_args[@]}"
        ok $? "$test_name"
 }
This page took 0.02602 seconds and 4 git commands to generate.