[PATCH lkp-tests] tests/monitor-job: fix rm gem sources

gem sources -c can not remove sources, use -r Signed-off-by: Wei Jihui <weijihuiall@163.com> --- tests/monitor-job | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/monitor-job b/tests/monitor-job index 5fd2d73c..4a5d8562 100755 --- a/tests/monitor-job +++ b/tests/monitor-job @@ -18,7 +18,8 @@ set_scheduler_config() install_gem_pkgs() { - gem sources -c -a https://gems.ruby-china.com/ + gem sources -r http://rubygems.org + gem sources -a https://gems.ruby-china.com/ gem install activesupport git rest-client elasticsearch } -- 2.23.0

On Tue, Feb 02, 2021 at 09:00:08PM +0800, Wei Jihui wrote:
gem sources -c can not remove sources, use -r
Signed-off-by: Wei Jihui <weijihuiall@163.com> --- tests/monitor-job | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/monitor-job b/tests/monitor-job index 5fd2d73c..4a5d8562 100755 --- a/tests/monitor-job +++ b/tests/monitor-job @@ -18,7 +18,8 @@ set_scheduler_config()
install_gem_pkgs() { - gem sources -c -a https://gems.ruby-china.com/ + gem sources -r http://rubygems.org + gem sources -a https://gems.ruby-china.com/
Use gem sources -r https://rubygems.org/ -a https://gems.ruby-china.com/ ? Thanks, Xueliang
gem install activesupport git rest-client elasticsearch }
-- 2.23.0
participants (2)
-
Cao Xueliang
-
Wei Jihui