Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[antlir2][image_test] move help to subcommand
Summary: For more dynamic (in other words, useful) help, move it into the Rust binary. This doesn't actually make the help more helpful, but opens the door to do so. Test Plan: ``` ❯ buck2 run fbcode//antlir/antlir2/testing/tests:test-rust-boot-centos9[container] 2dae0e08-92fc-404d-a1e1-1516d437dfc6 login: root (automatic login) ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ This is an antlir2 booted image test. ┃ ┃ ┃ ┃ Press ^] three times within 1s to kill the container. ┃ ┃ ┃ ┃ You have been auto-logged in to a root console. Feel free to mess around here, ┃ ┃ any changes you make will be thrown away when the container exits. ┃ ┃ ┃ ┃ Soon, this will be populated with a copy-pasteable command, but for now... ┃ ┃ ┃ ┃ To run your test interactively: ┃ ┃ ┃ ┃ In another shell on your host: ┃ ┃ ┃ ┃ 'buck2 build --show-full-output $test[inner_test]' ┃ ┃ ┃ ┃ In this shell: ┃ ┃ ┃ ┃ Run the binary at that path printed above ┃ ┃ EOF ┃ ┃ ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ╲ ╲ \_\_ _/_/ ╲ \__/ (oo)\_______ (__)\ )\/\ ||----w | || || [root@2dae0e08-92fc-404d-a1e1-1516d437dfc6 ~]# ``` Reviewed By: epilatow Differential Revision: D65823556 fbshipit-source-id: 0d8f938b3c9c79f595114f6d76025802c2d83ff4
- Loading branch information