Skip to content
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

Workaround "No route to host" error on wget command in fullstack test #1728

Merged
merged 1 commit into from Jul 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion t/data/tests/tests/modify_and_upload_file.pm
@@ -1,4 +1,4 @@
# Copyright (C) 2017 SUSE LLC
# Copyright (C) 2017-2021 SUSE LLC
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -44,6 +44,9 @@ sub run {
my $url = autoinst_url . '/files/modified.xml';
$content =~ s/PASSWORD/nots3cr3t/g;
save_tmp_file('modified.xml', $content);
# ensure we have an IP to workaround "No route to host" error
# note: Note sure why the IP address is not assigned automatically anymore as it used to be.
assert_script_run('sudo ifconfig eth0 add 10.0.2.2\24');
# Verify that correct file is downloaded
assert_script_run("wget -q $url");
script_run "echo '72d2c15cb10535f36862d7d2eecc8a79 modified.xml' > modified.md5";
Expand Down