]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Replace bc command with printf command 21015/head
authorDavid Zafman <dzafman@redhat.com>
Thu, 22 Mar 2018 23:19:47 +0000 (16:19 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 23 Mar 2018 00:58:50 +0000 (17:58 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 293ac9895f86b1258434d0dc539a7d4b7046cb6d)

qa/standalone/scrub/osd-recovery-scrub.sh

index ef9a3318afd8f28d0c589ce37a3a090e585da72d..1061dc77effd9cee976f50ecefc185ac624a89e2 100755 (executable)
@@ -65,7 +65,7 @@ function TEST_recovery_scrub() {
     pids=""
     for pg in $(seq 0 $(expr $PGS - 1))
     do
-        run_in_background pids pg_scrub $poolid.$(echo "{ obase=16; $pg }" | bc | tr '[:upper:]' '[:lower:]')
+        run_in_background pids pg_scrub $poolid.$(printf "%x" $pg)
     done
     ceph pg dump pgs
     wait_background pids