mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
scripts/spdxcheck-test.sh: Drop python2
Since commit d0259c42ab
("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>
This commit is contained in:
parent
74a03c20bc
commit
03b1292d1c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user