Commit Graph

62 Commits

Author SHA1 Message Date
Erik Bjorge 81083bca03 Flake8 Cleanup
- Remove unused imports
- Improve spacing of functions/methods for readability
- Indentation updates
- Exception expression updates

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2022-02-16 08:23:01 -08:00
Erik Bjorge 400f8e87a5 Fix regex reference
Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2022-02-08 11:06:14 -08:00
Erik Bjorge b131fdc78a Remove import debug code
Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2022-02-08 11:06:04 -08:00
Nathaniel Mitchell 303a0f2a3c Revert "extend chipsec_main search to both py and pyc"
This reverts commit aece703080.
2022-01-28 10:48:17 -08:00
Nathaniel Mitchell fffb9c7ceb Revert "search for py and pyc modules explicitly"
This reverts commit 86c4182af1.
2022-01-28 10:48:17 -08:00
Tal Lubko 86c4182af1 search for py and pyc modules explicitly
search for py and pyc modules explicitly instead of searching for py*
2022-01-28 10:13:12 -08:00
Tal Lubko aece703080 extend chipsec_main search to both py and pyc 2022-01-28 10:13:12 -08:00
Sae86 4d4092d6a7 Add functionality to search for metadata tags in test modules
Signed-off-by: Sae86 <sara.batllori@intel.com>
2021-12-02 16:00:46 -08:00
brentholtsclaw 0e53326a83 Create exceptions.py for chipsec exceptions
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2021-08-26 10:50:51 -07:00
Nathaniel Mitchell c8c14e21be Remove shebang from all but the entry points. Update ep to py3
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2021-08-12 08:27:33 -07:00
Aaron Frinzell 1331e86c39 Add very verbose command-line option 2021-01-26 16:13:22 -08:00
Nathaniel Mitchell 6fedd0f37c Merge branch 'pr/999' 2020-09-25 16:01:39 -07:00
Nathaniel Mitchell 749de73d38 Merge branch 'master' into nobanner 2020-09-24 15:22:54 -07:00
brentholtsclaw 51ce222498 Add skip_config option
option skips driver load and configuration loading

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-09-24 09:54:30 -07:00
Aaron Frinzell bd13860c76 Update text typo 2020-09-04 12:27:11 -05:00
brentholtsclaw f23d408abc Add -nb --no_banner option
Will allow to run main and util without a banner

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-08-28 14:50:19 -07:00
brentholtsclaw f7fe1be074 More whitespace cleanup
E231, E201, E226

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-07-31 13:46:13 -07:00
brentholtsclaw b610b47a6f Fix module loading output with -m option
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-07-28 11:24:19 -07:00
brentholtsclaw af7fa737ee Clean up indentation
E111

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-07-01 16:35:07 -07:00
brentholtsclaw a00b2838e5 Cleanup trailing whitespace
W291,W293,W391

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-07-01 15:44:21 -07:00
brentholtsclaw a36387cb44 Change return guidance for unknown chipset error
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-06-25 11:50:48 -07:00
Frinzell 3b2fdf531c Move print after User Modules 2020-06-25 11:49:25 -07:00
Frinzell 9ce324f0c8 Avoid duplicate printing Loaded Modules 2020-06-25 11:49:25 -07:00
brentholtsclaw 3bb2b443b7 Don't display pch information for atom
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2020-05-26 12:37:35 -07:00
Ignacio Hernandez c920c932c2 Sort the reported result summaries
Makes easier to compare results between runs

Signed-off-by: Ignacio Hernandez <ignacio.hernandez@intel.com>
2020-05-01 08:21:10 -07:00
Ignacio Hernandez 427ab13196 Adding markdown formatted output
Signed-off-by: Ignacio Hernandez <ignacio.hernandez@intel.com>
2020-05-01 08:21:10 -07:00
BrentHoltsclaw 514c23d84d Modify files based upon chipset.py changes
Fixup files that relied on CHIPSET_ID_XXX logic
Modify files for functions moved within cs class

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-04-20 08:39:02 -07:00
carlsbad 393c7ec215 chipsec_main.py: Warn if Python architecture is different from OS architecture… 2020-03-20 17:47:20 -07:00
BrentHoltsclaw a7754ef7bd Edit chipsec banner information
Add ability to display a message from MESSAGE file within chipsec directory

Modify get version function to check for VERSION files not VERSION and CUSTOM_VERSION files

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2020-03-02 13:45:23 -08:00
BrentHoltsclaw 7562a21a59 Add helper/driver information to chipsec_main and chipsec_util
Add self.name and self.driverpath to Helper baseclass
Add get_info function into Helper baseclass which returns self.name and self.driverpath
Modify helpers to have proper name and driver location for driver loaded

Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-11-18 15:22:09 -08:00
BrentHoltsclaw 75fe4e2dd8 Add python architecture to chipsec_main and chipsec_util banner
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
2019-10-21 14:46:52 -07:00
Erik Bjorge dcef92048b Updated header output
- Updated chipsec_main and chipsec_util to include python version
- Added OS and chip information to chipsec_util

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-09-03 13:52:33 -07:00
BrentHoltsclaw 2efeda4345 Merge python3-rc2 branch into master (#656) 2019-08-15 14:11:20 -07:00
Erik Bjorge 639553880e Adding Revision ID reporting to chipset detection
Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-07-23 11:16:09 -07:00
Erik Bjorge 3d845d9a4c Made logging modes selectable
Verbose, HAL and debug logging modes are now each selectable.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2019-07-23 11:14:53 -07:00
Richard Hughes 66a399dd0a Add the eXecute permission on the launchable binaries
This means on Linux you can just do ./chipsec_util.py rather than using the
Python binary to invoke it.
2019-05-15 18:20:39 -07:00
BrentHoltsclaw 66710206e7 Changes based upon comments 2019-04-25 14:19:08 -07:00
BrentHoltsclaw 618cf08a55 Changes from rebase with master 2019-04-25 14:03:13 -07:00
BrentHoltsclaw 70c13182ad Suggested changes from @frinzell @johnloucaides and @skochinsky 2019-04-25 14:03:13 -07:00
BrentHoltsclaw c7353d07e0 change to allow replay file naming
- Fixed up replay to allow user to pass in filename
- Edited chipsec_main to allow selection of helper
2019-04-25 14:03:13 -07:00
BrentHoltsclaw dd9ecaa155 change to allow clonefile naming 2019-04-25 14:03:13 -07:00
BrentHoltsclaw 825f2a58c0 Add Clone Replay ability into chipsec_main 2019-04-25 14:03:13 -07:00
BrentHoltsclaw 518c4ed90d Allow arguments to pass through to all modules 2019-03-04 13:58:00 -08:00
BrentHoltsclaw b0686eff22 Changes form @ErikBjorge @mjauregu and @skochinsky 2019-03-01 12:08:24 -08:00
BrentHoltsclaw a1c8cbe657 Fix issue #523.
When argparse was added to chipsec_main it no longer requires -a arguements to be separated with a comma.
Adding fix into chipsec main to handle cases when comma separated values are given
@TODO with different request:
Update any test docs to remove the comma within arguements for the modules
2019-03-01 12:08:24 -08:00
BrentHoltsclaw f4576f2065 Switched chipsec_main from getopt to argparse 2019-01-29 11:25:05 -08:00
BrentHoltsclaw 87a456d11b Rewrite of XML and JSON logger 2018-10-15 17:18:45 -07:00
Erik Bjorge b0be8b131b Add ability to only display result deltas from previous test run.
This allow the user to check for changes in test results or over time.
This can include the additon or removal of test as well as changes in
test results.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2018-05-11 17:03:12 -07:00
Erik Bjorge 0e40912ffc Added ability to override PCH detection.
Added the --pch <PCH_ID> command line option.  This allows the user to
specify the PCH to be used.

Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2018-04-09 17:36:02 -07:00
BrentHoltsclaw 3a39ff188f Split log.Skipped into Not Implemented and Not Applicable
Signed-off-by: BrentHoltsclaw <brent.holtsclaw@intel.com>
Signed-off-by: Erik Bjorge <erik.c.bjorge@intel.com>
2018-02-26 10:28:54 -08:00