@@ -49,13 +49,31 @@ info: default toolchain set to 'nightly-{0}'
49
49
fn update_again ( ) {
50
50
setup ( & |config| {
51
51
expect_ok ( config, & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ) ;
52
+ expect_ok (
53
+ config,
54
+ & [ "rustup" , "upgrade" , "nightly" , "--no-self-update" ] ,
55
+ ) ;
52
56
expect_ok_ex (
53
57
config,
54
58
& [ "rustup" , "update" , "nightly" , "--no-self-update" ] ,
55
59
for_host ! (
56
60
r"
57
61
nightly-{0} unchanged - 1.3.0 (hash-nightly-2)
58
62
63
+ "
64
+ ) ,
65
+ for_host ! (
66
+ r"info: syncing channel updates for 'nightly-{0}'
67
+ "
68
+ ) ,
69
+ ) ;
70
+ expect_ok_ex (
71
+ config,
72
+ & [ "rustup" , "upgrade" , "nightly" , "--no-self-update" ] ,
73
+ for_host ! (
74
+ r"
75
+ nightly-{0} unchanged - 1.3.0 (hash-nightly-2)
76
+
59
77
"
60
78
) ,
61
79
for_host ! (
@@ -73,6 +91,12 @@ fn check_updates_none() {
73
91
expect_ok ( config, & [ "rustup" , "update" , "stable" , "--no-self-update" ] ) ;
74
92
expect_ok ( config, & [ "rustup" , "update" , "beta" , "--no-self-update" ] ) ;
75
93
expect_ok ( config, & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ) ;
94
+ expect_ok ( config, & [ "rustup" , "upgrade" , "stable" , "--no-self-update" ] ) ;
95
+ expect_ok ( config, & [ "rustup" , "upgrade" , "beta" , "--no-self-update" ] ) ;
96
+ expect_ok (
97
+ config,
98
+ & [ "rustup" , "upgrade" , "nightly" , "--no-self-update" ] ,
99
+ ) ;
76
100
expect_stdout_ok (
77
101
config,
78
102
& [ "rustup" , "check" ] ,
@@ -93,6 +117,12 @@ fn check_updates_some() {
93
117
expect_ok ( config, & [ "rustup" , "update" , "stable" , "--no-self-update" ] ) ;
94
118
expect_ok ( config, & [ "rustup" , "update" , "beta" , "--no-self-update" ] ) ;
95
119
expect_ok ( config, & [ "rustup" , "update" , "nightly" , "--no-self-update" ] ) ;
120
+ expect_ok ( config, & [ "rustup" , "upgrade" , "stable" , "--no-self-update" ] ) ;
121
+ expect_ok ( config, & [ "rustup" , "upgrade" , "beta" , "--no-self-update" ] ) ;
122
+ expect_ok (
123
+ config,
124
+ & [ "rustup" , "upgrade" , "nightly" , "--no-self-update" ] ,
125
+ ) ;
96
126
set_current_dist_date ( config, "2015-01-02" ) ;
97
127
expect_stdout_ok (
98
128
config,
0 commit comments