test: fix SC2103 errors on older shellcheck.
Shellcheck version 0.6.0 reports all instances where we cd .. or cd - as instances of SC2103. The version we are using on the test pool must be newer, because we don't get the same errors, but for people running check_format locally, it can make it difficult to parse the output. Change-Id: I09f81a83c6f37480f13c36eb622e500364a1c437 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/474150 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com>
This commit is contained in:
parent
2df770535a
commit
08d5d8474b
@ -55,30 +55,22 @@ echo "tmpdir=$tmpdir"
|
|||||||
tar -C "$tmpdir" -xf $spdk_tarball
|
tar -C "$tmpdir" -xf $spdk_tarball
|
||||||
|
|
||||||
if [ -z "$WITH_DPDK_DIR" ]; then
|
if [ -z "$WITH_DPDK_DIR" ]; then
|
||||||
cd dpdk
|
(cd dpdk && git archive HEAD^{tree} --prefix=dpdk/ -o ../${dpdk_tarball})
|
||||||
git archive HEAD^{tree} --prefix=dpdk/ -o ../${dpdk_tarball}
|
|
||||||
cd ..
|
|
||||||
tar -C "$tmpdir/${spdk_pv}" -xf $dpdk_tarball
|
tar -C "$tmpdir/${spdk_pv}" -xf $dpdk_tarball
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "intel-ipsec-mb" ]; then
|
if [ -d "intel-ipsec-mb" ]; then
|
||||||
cd intel-ipsec-mb
|
(cd intel-ipsec-mb && git archive HEAD^{tree} --prefix=intel-ipsec-mb/ -o ../${ipsec_tarball})
|
||||||
git archive HEAD^{tree} --prefix=intel-ipsec-mb/ -o ../${ipsec_tarball}
|
|
||||||
cd ..
|
|
||||||
tar -C "$tmpdir/${spdk_pv}" -xf $ipsec_tarball
|
tar -C "$tmpdir/${spdk_pv}" -xf $ipsec_tarball
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "isa-l" ]; then
|
if [ -d "isa-l" ]; then
|
||||||
cd isa-l
|
(cd isa-l && git archive HEAD^{tree} --prefix=isa-l/ -o ../${isal_tarball})
|
||||||
git archive HEAD^{tree} --prefix=isa-l/ -o ../${isal_tarball}
|
|
||||||
cd ..
|
|
||||||
tar -C "$tmpdir/${spdk_pv}" -xf $isal_tarball
|
tar -C "$tmpdir/${spdk_pv}" -xf $isal_tarball
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "ocf" ]; then
|
if [ -d "ocf" ]; then
|
||||||
cd ocf
|
(cd ocf && git archive HEAD^{tree} --prefix=ocf/ -o ../${ocf_tarball})
|
||||||
git archive HEAD^{tree} --prefix=ocf/ -o ../${ocf_tarball}
|
|
||||||
cd ..
|
|
||||||
tar -C "$tmpdir/${spdk_pv}" -xf $ocf_tarball
|
tar -C "$tmpdir/${spdk_pv}" -xf $ocf_tarball
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -190,9 +190,7 @@ if [ "$cov_avail" = "yes" ]; then
|
|||||||
rm -f $UT_COVERAGE/ut_cov_base.info $UT_COVERAGE/ut_cov_test.info
|
rm -f $UT_COVERAGE/ut_cov_base.info $UT_COVERAGE/ut_cov_test.info
|
||||||
genhtml $UT_COVERAGE/ut_cov_unit.info --output-directory $UT_COVERAGE
|
genhtml $UT_COVERAGE/ut_cov_unit.info --output-directory $UT_COVERAGE
|
||||||
# git -C option not used for compatibility reasons
|
# git -C option not used for compatibility reasons
|
||||||
cd $rootdir
|
(cd $rootdir && git clean -f "*.gcda")
|
||||||
git clean -f "*.gcda"
|
|
||||||
cd -
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
Loading…
Reference in New Issue
Block a user