Skip to content

nexthopbmc: tests: add CIT version tests - #287

Open
nate-nexthop wants to merge 1 commit into
facebook:heliumfrom
nexthop-ai:nate.version-tests
Open

nexthopbmc: tests: add CIT version tests#287
nate-nexthop wants to merge 1 commit into
facebook:heliumfrom
nexthop-ai:nate.version-tests

Conversation

@nate-nexthop

Copy link
Copy Markdown
Contributor

Description

Add basic version tests for nexthopbmc. Ths is checking the version of the Linux kernel, U-Boot, and Yocto release version meet the requiements for FB-Lite platforms

Motivation

Ensure that nexthopbmc meets the requirements for FB-Lite and doesn't regress.

Test Plan

Run on a nexthopbmc with tests2 copied to /run/tests2:

$ python3 cit_runner.py --run-test tests.nexthopbmc.test_kernel_version
test_kernel_version (tests.nexthopbmc.test_kernel_version.KernelVersionTest.test_kernel_version) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.020s

OK

$ python3 cit_runner.py --run-test tests.nexthopbmc.test_uboot_version_check
test_uboot_version_check (tests.nexthopbmc.test_uboot_version_check.UbootVersionCheck.test_uboot_version_check) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.011s

OK

$ python3 cit_runner.py --run-test tests.nexthopbmc.test_yocto_version
test_yocto_version (tests.nexthopbmc.test_yocto_version.YoctoVersionTest.test_yocto_version) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.045s

OK

Please include a summary of the change and which issue is fixed.

Please include an explanation of why you these changes are necessary

Test Plan

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Summary:
Add basic version tests for nexthopbmc. Ths is checking the version of the
Linux kernel, U-Boot, and Yocto release version meet the requiements for FB-Lite platforms

# Test Plan

Run on a nexthopbmc with tests2 copied to /run/tests2:

    $ python3 cit_runner.py --run-test tests.nexthopbmc.test_kernel_version
    test_kernel_version (tests.nexthopbmc.test_kernel_version.KernelVersionTest.test_kernel_version) ... ok

    ----------------------------------------------------------------------
    Ran 1 test in 0.020s

    OK

    $ python3 cit_runner.py --run-test tests.nexthopbmc.test_uboot_version_check
    test_uboot_version_check (tests.nexthopbmc.test_uboot_version_check.UbootVersionCheck.test_uboot_version_check) ... ok

    ----------------------------------------------------------------------
    Ran 1 test in 0.011s

    OK

    $ python3 cit_runner.py --run-test tests.nexthopbmc.test_yocto_version
    test_yocto_version (tests.nexthopbmc.test_yocto_version.YoctoVersionTest.test_yocto_version) ... ok

    ----------------------------------------------------------------------
    Ran 1 test in 0.045s

    OK
@meta-cla meta-cla Bot added the CLA Signed label Sep 9, 2026
@meta-codesync

meta-codesync Bot commented Sep 9, 2026

Copy link
Copy Markdown

This pull request has been imported. If you are a Meta employee, you can view this in D119349849. (Because this pull request was imported automatically, there will not be any future comments.)

@nate-nexthop

Copy link
Copy Markdown
Contributor Author

@ezeob002 FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant