File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ pub(crate) enum TestingOpts {
101
101
#[ allow( clippy:: large_enum_variant) ]
102
102
pub ( crate ) enum Opt {
103
103
/// Look for updates to the booted container image.
104
+ #[ clap( alias = "update" ) ]
104
105
Upgrade ( UpgradeOpts ) ,
105
106
/// Target a new container image reference to boot.
106
107
Switch ( SwitchOpts ) ,
Original file line number Diff line number Diff line change @@ -105,11 +105,13 @@ pub(crate) fn impl_run_container() -> Result<()> {
105
105
let stout = cmd ! ( sh, "bootc status" ) . read ( ) ?;
106
106
assert ! ( stout. contains( "Running in a container (ostree base)." ) ) ;
107
107
drop ( stout) ;
108
- let o = Command :: new ( "bootc" ) . arg ( "upgrade" ) . output ( ) ?;
109
- let st = o. status ;
110
- assert ! ( !st. success( ) ) ;
111
- let stderr = String :: from_utf8 ( o. stderr ) ?;
112
- assert ! ( stderr. contains( "this command requires a booted host system" ) ) ;
108
+ for c in [ "upgrade" , "update" ] {
109
+ let o = Command :: new ( "bootc" ) . arg ( c) . output ( ) ?;
110
+ let st = o. status ;
111
+ assert ! ( !st. success( ) ) ;
112
+ let stderr = String :: from_utf8 ( o. stderr ) ?;
113
+ assert ! ( stderr. contains( "this command requires a booted host system" ) ) ;
114
+ }
113
115
println ! ( "ok container integration testing" ) ;
114
116
Ok ( ( ) )
115
117
}
You can’t perform that action at this time.
0 commit comments