Skip to content

feat: Add support for EFI Shell OS and related tests - #16

Merged
a-gorczew merged 1 commit into
mainfrom
efi_shell
Jun 12, 2026
Merged

a-gorczew merged 1 commit into
mainfrom
efi_shell

Conversation

@adrianlasota

Copy link
Copy Markdown
Contributor

This pull request adds support for the EFI Shell (UEFI Shell) operating system to the MFD host framework. It introduces a new EFIShellHost class, updates the main Host factory logic to recognize EFI Shell, and extends the test suite to cover the new OS type and its properties.

New EFI Shell OS support:

  • Added the EFIShellHost class in mfd_host/efishell.py, implementing host support for UEFI Shell OS.
  • Registered EFIShellHost in the Host factory (mfd_host/base.py) so that instances are created automatically when the connection OS is EFI Shell.
  • Updated the supported OS list in README.md to include EFI Shell.

Testing and documentation:

  • Added comprehensive tests for EFIShellHost to verify property behaviors and correct instantiation, including checks for supported and unsupported features. [1] [2]
  • Updated example usage in examples/simple_example.py to demonstrate how to instantiate an EFI Shell host. [1] [2]

Other:

  • Updated copyright years in affected files to reflect 2026. [1] [2]

These changes ensure that the MFD host framework can now work with systems running in the UEFI Shell environment, with appropriate test coverage and documentation.

Copilot AI review requested due to automatic review settings May 26, 2026 06:06
@coveralls-official

coveralls-official Bot commented May 26, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 95.451% (+1.4%) from 94.021% — efi_shell into main

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds first-class support for the EFI Shell (UEFI Shell) OS to the mfd_host framework by introducing a dedicated host subclass and wiring it into the Host factory, along with tests and minor documentation/example updates.

Changes:

  • Added EFIShellHost (mfd_host/efishell.py) and registered it in Host.__new__ OS dispatch.
  • Extended unit tests to validate EFI Shell host instantiation and property behavior (including unsupported features).
  • Updated documentation (supported OS list) and added a simple example for EFI Shell host creation.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/unit/test_mfd_host/test_base.py Adds EFIShellHost creation test and property-level behavior tests (supported/unsupported features).
README.md Lists EFI Shell among supported OSes.
mfd_host/efishell.py Introduces EFIShellHost with OS gating via os_supported.
mfd_host/base.py Registers OSName.EFISHELL in the Host factory mapping.
examples/simple_example.py Adds an EFI Shell instantiation example using an mfd_connect connection type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread examples/simple_example.py Resolved
Signed-off-by: Lasota, Adrian <adrian.lasota@intel.com>
@mfd-intel-bot

Copy link
Copy Markdown
Contributor

We don't publish DEVs .whl.
To build .whl, run 'pip install git+https://github.com/intel/mfd-host@efi_shell'

@a-gorczew
a-gorczew merged commit c6a9440 into main Jun 12, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants