scripts/spdxcheck-test.sh: Drop python2
authorNishanth Menon <nm@ti.com>
Wed, 7 Jul 2021 21:06:00 +0000 (16:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 13:59:32 +0000 (15:59 +0200)
Since commit d0259c42abff ("spdxcheck.py: Use Python 3"), spdxcheck.py
explicitly expects to run as python3 script, there is no further point
in attempting to test with python2.

Cc: Bert Vermeulen <bert@biot.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20210707210600.7266-1-nm@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/spdxcheck-test.sh

index cfea6a0..cb76324 100644 (file)
@@ -1,12 +1,10 @@
 #!/bin/sh
 
-for PYTHON in python2 python3; do
-       # run check on a text and a binary file
-       for FILE in Makefile Documentation/logo.gif; do
-               $PYTHON scripts/spdxcheck.py $FILE
-               $PYTHON scripts/spdxcheck.py - < $FILE
-       done
-
-       # run check on complete tree to catch any other issues
-       $PYTHON scripts/spdxcheck.py > /dev/null
+# run check on a text and a binary file
+for FILE in Makefile Documentation/logo.gif; do
+       python3 scripts/spdxcheck.py $FILE
+       python3 scripts/spdxcheck.py - < $FILE
 done
+
+# run check on complete tree to catch any other issues
+python3 scripts/spdxcheck.py > /dev/null