Whamcloud - gitweb
LU-17251 tests: use stderr in precreated_ost_obj_count()
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 9 Nov 2023 23:28:45 +0000 (16:28 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 10 Nov 2023 09:31:36 +0000 (09:31 +0000)
Write the status output to stderr instead of stdout, so that
it doesn't confuse the caller that is expecting the number
of objects precreated in stdout.

Test-Parameters: trivial testlist=sanity-scrub,sanity-lfsck
Fixes: c39bdce94f ("LU-17251 test: improve parallel-scale rr_alloc test")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ib9b132a04a88b15cea34872954bfa5c4ddf8cde7
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53062
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/test-framework.sh

index e959a09..02a12bf 100755 (executable)
@@ -9576,7 +9576,7 @@ precreated_ost_obj_count()
        echo " - precreated_ost_obj_count $proc_path" \
             "prealloc_last_id: $last_id" \
             "prealloc_next_id: $next_id" \
-            "count: $ost_obj_count"
+            "count: $ost_obj_count" 1>&2
 
        echo $ost_obj_count
 }