]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Replace bc command with printf command 21013/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 23 Mar 2018 00:19:56 +0000 (17:19 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 23 Mar 2018 00:19:56 +0000 (17:19 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/scrub/osd-recovery-scrub.sh

index 670ea1c328d870c946b4c4373443907a4316a453..1097c7b33da8582026636ffbf934e0dc7549140f 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