From fb20713b380e1df8d7f9e9df96563be2f9144fd6 Mon Sep 17 00:00:00 2001 From: Mohit Agrawal Date: Thu, 12 Mar 2020 21:12:13 +0530 Subject: Posix: Use simple approach to close fd Problem: posix_release(dir) functions add the fd's into a ctx->janitor_fds and janitor thread closes the fd's.In brick_mux environment it is difficult to handle race condition in janitor threads because brick spawns a single janitor thread for all bricks. Solution: Use synctask to execute posix_release(dir) functions instead of using background a thread to close fds. Credits: Pranith Karampuri Change-Id: Iffb031f0695a7da83d5a2f6bac8863dad225317e Fixes: bz#1811631 Signed-off-by: Mohit Agrawal --- run-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'run-tests.sh') diff --git a/run-tests.sh b/run-tests.sh index d3ff78d6915..2768adb5afd 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -357,8 +357,7 @@ function run_tests() selected_tests=$((selected_tests+1)) echo echo $section_separator$section_separator - if [[ $(get_test_status $t) == "BAD_TEST" ]] || \ - [[ $(get_test_status $t) == "BRICK_MUX_BAD_TEST" ]] && \ + if [[ $(get_test_status $t) =~ "BAD_TEST" ]] && \ [[ $skip_bad_tests == "yes" ]] then skipped_bad_tests=$((skipped_bad_tests+1)) -- cgit