summaryrefslogtreecommitdiff
path: root/scripts/spdxcheck-test.sh
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2021-07-07 16:06:00 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-21 15:59:32 +0200
commit03b1292d1c0ea195e025e667555d74db7da82026 (patch)
treecfddb620e1fc5cc12df3459b0683504fe26ad6f2 /scripts/spdxcheck-test.sh
parent74a03c20bc8809a41d66ea614e55358064adbd7d (diff)
scripts/spdxcheck-test.sh: Drop python2
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>
Diffstat (limited to 'scripts/spdxcheck-test.sh')
-rw-r--r--scripts/spdxcheck-test.sh16
1 files changed, 7 insertions, 9 deletions
diff --git a/scripts/spdxcheck-test.sh b/scripts/spdxcheck-test.sh
index cfea6a0d1cc0..cb76324756bd 100644
--- a/scripts/spdxcheck-test.sh
+++ b/scripts/spdxcheck-test.sh
@@ -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