tests: Disable shellcheck SC2010 in two cases

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 5e4ce6e..9bf83a2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -239,9 +239,8 @@
 syntax-check:
 # SC2001: See if you can use ${variable//search/replace} instead.
 # SC2009: Consider using pgrep instead of grepping ps output.
-# Sc2010: Don't use ls | grep. Use a glob or a for loop with a condition to allow non-alphanumeric filenames.
 # SC2148: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
-	shellcheck -e SC2001,SC2009,SC2010,SC2148 \
+	shellcheck -e SC2001,SC2009,SC2148 \
 		$(TESTS) $(TEST_UTILS) $(filter _test_%,$(EXTRA_DIST))
 
 check: check-am check-display
diff --git a/tests/common b/tests/common
index 5917466..92a1830 100644
--- a/tests/common
+++ b/tests/common
@@ -954,6 +954,7 @@
 	local pid="$1"
 
 	if [ -d "/proc/${pid}/fd" ]; then
+		# shellcheck disable=SC2010
 		if ls -l "/proc/${pid}/fd" | grep -q -E "\.lock\$"; then
 			echo "Error: swtpm must not have storage locked"
 			ls -l "/proc/${pid}/fd"
@@ -977,6 +978,7 @@
 	local pid="$1"
 
 	if [ -d "/proc/${pid}/fd" ]; then
+		# shellcheck disable=SC2010
 		if ! ls -l "/proc/${pid}/fd" | grep -q -E "\.lock\$"; then
 			echo "Error: swtpm must have storage locked"
 			ls -l "/proc/${pid}/fd"