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>
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			277 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			277 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| # 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
 |