If $output_dir is not set, cwd is used as a designated output dir throughout the runtime of the script that sourced autotest_common.sh. This, however, may fail in some particular cases, e.g. when calling autobuild.sh directly from within the spdk repo. As a result some *.txt files that are created by scanbuild_make() will end up in the root of the repo. This causes porcelain_check() to fail as it does pick these files up after the test is done. To avoid similar scenarios, simply make sure the desired output dir is always created and that it resides outside of the repo. Change-Id: I5b2e142ce9c2a0b8d24d5331f2b52110c9634c67 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2791 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> |
||
---|---|---|
.. | ||
config | ||
lib | ||
applications.sh | ||
autotest_common.sh | ||
skipped_build_files.txt | ||
skipped_tests.txt |