-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another approach to write netboot-lib #639
base: ubuntu-automatic-installation
Are you sure you want to change the base?
Conversation
Signed-off-by: Piotr Król <[email protected]>
Signed-off-by: Maciej Pijanowski <[email protected]>
Signed-off-by: Piotr Król <[email protected]>
…uction test Signed-off-by: Piotr Król <[email protected]>
… Construction Signed-off-by: Piotr Król <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far looks good, thanks.
The question is if it works further as well - whether it will allow us to enter the menus (and then select OS) we need.
@macpijan, that is my goal; please let me know what test you want. I would like to have an Ubuntu installation. Do we also want to boot arbitrary Live distro? |
I think it's more than enough if this works. |
self-tests/netbootxyz.robot
Outdated
Library RequestsLibrary | ||
# TODO: maybe have a single file to include if we need to include the same | ||
# stuff in all test cases | ||
Resource ../sonoff-rest-api/sonoff-api.robot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please drop - triggers: Resource file '../sonoff-rest-api/sonoff-api.robot' does not exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self-tests/netbootxyz.robot
Outdated
# TODO: maybe have a single file to include if we need to include the same | ||
# stuff in all test cases | ||
Resource ../sonoff-rest-api/sonoff-api.robot | ||
Resource ../rtectrl-rest-api/rtectrl.robot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above - we do not use them anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the mentioned errors, strangely enough it does not work for me for UEFI:
|
Jeez, sorry. I didn't pushed all the changes. |
Signed-off-by: Piotr Król <[email protected]>
Signed-off-by: Piotr Król <[email protected]>
…edundant kwd Signed-off-by: Piotr Król <[email protected]>
Signed-off-by: Piotr Król <[email protected]>
@macpijan, please check now. All those PRs are so convoluted that changes are not logically separated because I'm fixing issues where I find them. To clarify things, we should split my PRs into many and describe those much better. If you have suggestions, please let me know. I know it is currently quite dirty, but at least I'm following the lib structure instead of bling keystrokes and hope for not changing menus. |
Signed-off-by: Piotr Król <[email protected]>
Now parsing of the main menu works fine 👍 |
Signed-off-by: Piotr Król <[email protected]>
Signed-off-by: Piotr Król <[email protected]>
Now, parsing of the Linux Install menu works. It cost me a couple of hours of work, but I'm so far happy with the results: ==============================================================================
Netbootxyz :: This suite verifies the correct operation of keywords parsing...
==============================================================================
Enter Netboot.Xyz Linux Install Menu And Return Construction :: Te... | PASS |
------------------------------------------------------------------------------
Netbootxyz :: This suite verifies the correct operation of keyword... | PASS |
1 test, 1 passed, 0 failed
============================================================================== We should have a goo foundation for kicking off any OS installation. |
Signed-off-by: Piotr Król <[email protected]>
With these changes, I can enter Debian, Ubuntu and Fedora installation menus: ==============================================================================
Netbootxyz :: This suite verifies the correct operation of keywords parsing...
==============================================================================
Enter Netboot.Xyz Linux Distro Install Menu And Return Constructio... | PASS |
------------------------------------------------------------------------------
Enter Netboot.Xyz Linux Distro Install Menu And Return Constructio... | PASS |
------------------------------------------------------------------------------
Enter Netboot.Xyz Linux Distro Install Menu And Return Constructio... | PASS |
------------------------------------------------------------------------------
Netbootxyz :: This suite verifies the correct operation of keyword... | PASS |
3 tests, 3 passed, 0 failed
============================================================================== |
Signed-off-by: Piotr Król <[email protected]>
Above change allows to set kernel cmdline parameters in Utilities menu: ==============================================================================
Netbootxyz :: This suite verifies the correct operation of keywords parsing...
==============================================================================
Enter Netboot.Xyz And Set Kernel Cmdline Params :: Test Enter Netb... | PASS |
------------------------------------------------------------------------------
Netbootxyz :: This suite verifies the correct operation of keyword... | PASS |
1 test, 1 passed, 0 failed
============================================================================== |
Current state:
Dasharo (coreboot+UEFI)
Test env preparation:
self-test was moded to execute only
self-test/netbootxyz.robot
Dasharo (coreboot+SeaBIOS)
Test env preparation:
self-test was moded to execute only
self-test/netbootxyz.robot
With this PR we should be able to remove two branches:
Obviously there is redundancy here and we should clean this PR first.