Commit 03b1292d authored by Nishanth Menon's avatar Nishanth Menon Committed by Greg Kroah-Hartman
Browse files

scripts/spdxcheck-test.sh: Drop python2



Since commit d0259c42 ("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: default avatarNishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20210707210600.7266-1-nm@ti.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 74a03c20
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
#!/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
	python3 scripts/spdxcheck.py $FILE
	python3 scripts/spdxcheck.py - < $FILE
done

# run check on complete tree to catch any other issues
	$PYTHON scripts/spdxcheck.py > /dev/null
done
python3 scripts/spdxcheck.py > /dev/null