Commit 53af1a4b authored by Steven Rostedt (Google)'s avatar Steven Rostedt (Google) Committed by Shuah Khan
Browse files

tracing/selftests: Run the ownership test twice



A regression happened where running the ownership test passes on the first
iteration but fails running it a second time. This was caught and fixed,
but a later change brought it back. The regression was missed because the
automated tests only run the tests once per boot.

Change the ownership test to iterate through the tests twice, as this will
catch the regression with a single run.

Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 98f8faea
Loading
Loading
Loading
Loading
+20 −14
Original line number Diff line number Diff line
@@ -83,6 +83,11 @@ run_tests() {
	done
}

# Run the tests twice as leftovers can cause issues
for loop in 1 2 ; do

	echo "Running iteration $loop"

	mount -o remount,"$new_options" .

	run_tests
@@ -110,5 +115,6 @@ cd ../..
	rmdir instances/$instance

	chgrp $original_group instances
done

exit 0