test/common: Remove the call to sudo in unit test script when not needed
Signed-off-by: Alexis Lescouet <alexis.lescouet@nutanix.com> Change-Id: I457ddee7c110088578b7f1b0a5caf78882e301c5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11636 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
a71cd5214b
commit
b9a667914f
@ -183,7 +183,7 @@ export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1:disabl
|
||||
# Export LeakSanitizer option to use suppression file in order to prevent false positives
|
||||
# and known leaks in external executables or libraries from showing up.
|
||||
asan_suppression_file="/var/tmp/asan_suppression_file"
|
||||
sudo rm -rf "$asan_suppression_file"
|
||||
rm -rf "$asan_suppression_file" 2> /dev/null || sudo rm -rf "$asan_suppression_file"
|
||||
cat << EOL >> "$asan_suppression_file"
|
||||
# ASAN has some bugs around thread_local variables. We have a destructor in place
|
||||
# to free the thread contexts, but ASAN complains about the leak before those
|
||||
|
Loading…
Reference in New Issue
Block a user