Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Adding License checker test cases #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Adding LATestCase to the TestSuite
  • Loading branch information
besabasr committed Aug 25, 2015
commit cc1446b44ecbdf9a887c8638600d5dd8d518bd0b
1 change: 0 additions & 1 deletion tests/LAPluginTestCase.py
Original file line number Diff line number Diff line change
@@ -70,7 +70,6 @@ def test_package_with_licenses_NotOK(self):
self.imageSecurityAnalyser.process_package(pkg)
with open(reportdir + "/license_report", 'r') as freport:
output = freport.readline()
print(output)
# if bad licenses exist a report listing them is created
self.assertEqual(output,
"bash: BadLicense-1.1\n",
4 changes: 3 additions & 1 deletion tests/TestSuiteISAFW.py
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@
from KCAPluginTestCase import *
from CFAPluginTestCase import *
from FSAPluginTestCase import *
from LAPluginTestCase import *

suite = unittest.TestLoader().loadTestsFromTestCase(TestCVEPlugin)
unittest.TextTestRunner(verbosity=2).run(suite)
@@ -44,4 +45,5 @@
suite = unittest.TestLoader().loadTestsFromTestCase(TestFSAPlugin)
unittest.TextTestRunner(verbosity=2).run(suite)


suite = unittest.TestLoader().loadTestsFromTestCase(TestLAPlugin)
unittest.TextTestRunner(verbosity=2).run(suite)