]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
script/run-cbt.sh: always use python3 30321/head
authorKefu Chai <kchai@redhat.com>
Wed, 11 Sep 2019 09:19:02 +0000 (17:19 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 11 Sep 2019 10:16:47 +0000 (18:16 +0800)
run-cbt.sh will be used by the "ceph-perf-pull-requests" jenkins job,
which will prepare the runtime dependencies by installing python3
modules.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/script/run-cbt.sh
src/test/crimson/cbt/t2c.py

index 29997fa8c1bc1b6ffbbac0e80bdd35d988bf62f4..f13dca9f151d8dbd57bb2d865be1897bf081509b 100755 (executable)
@@ -93,11 +93,11 @@ fi
 for config_file in $config_files; do
     echo "testing $config_file"
     cbt_config=$(mktemp $config_file.XXXX.yaml)
-    $source_dir/src/test/crimson/cbt/t2c.py \
+    python3 $source_dir/src/test/crimson/cbt/t2c.py \
         --build-dir $build_dir \
         --input $config_file \
         --output $cbt_config
-    $cbt_dir/cbt.py \
+    python3 $cbt_dir/cbt.py \
         --archive $archive_dir \
         --conf $build_dir/ceph.conf \
         $cbt_config
index 89ae650291eb7b898aa2091b1ec52c794fdccdff..0d4ee49e5b692d866039aca2eeecd6044ffc35ab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 import argparse