to guard the embedded shell script with the check of "osd-flavor" parameter
Signed-off-by: Kefu Chai <kchai@redhat.com>
- shell: |
cd {src_dir}
archive_dir={archive_basedir}/$(git rev-parse --short HEAD)
- if ! test -d $archive_dir ; then
- export NPROC=$(nproc)
- export FOR_MAKE_CHECK=true
+ if test -d $archive_dir ; then
+ exit 0
+ fi
+ export NPROC=$(nproc)
+ export FOR_MAKE_CHECK=true
+ if test {osd-flavor} = "crimson" ; then
export WITH_SEASTAR=true
timeout 7200 src/script/run-make.sh --cmake-args "-DCMAKE_BUILD_TYPE=Release -DWITH_SEASTAR=ON -DWITH_TESTS=OFF" vstart-base crimson-osd
src/script/run-cbt.sh --build-dir $PWD/build --source-dir $PWD --cbt ${{WORKSPACE}}/cbt -a $archive_dir src/test/crimson/cbt/radosbench_4K_read.yaml
fi
+
- builder:
name: compare-cbt-results
builders: