Skip to content

Commit

Permalink
Test automatic Git checkouts on the web UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jun 20, 2024
1 parent ede5886 commit f24d945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/install/openqa_webui.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sub install_from_pkgs {
assert_script_run 'systemctl restart apache2';
}
assert_script_run($_) foreach (split /\n/, <<~'EOF');
sed -i -e 's/#.*method.*OpenID.*$/&\nmethod = Fake/' /etc/openqa/openqa.ini
sed -i -e 's/#.*method.*OpenID.*$/&\nmethod = Fake/' -e 's/#\[scm git\]/[scm git]/' -e 's/#git_auto_clone =.*$/git_auto_clone = yes/' /etc/openqa/openqa.ini
systemctl enable --now openqa-webui
systemctl status --no-pager openqa-webui
systemctl enable --now openqa-scheduler
Expand Down
2 changes: 2 additions & 0 deletions tests/osautoinst/test_running.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ sub run ($self) {
assert_script_run q{retry -s 30 -r 5 -- sh -c 'openqa-cli api jobs state=running state=done | ack --passthru --color "running|done"'}, 300;
}
save_screenshot;
assert_script_run q{retry -s 10 -r 6 -e -- sh -c 'test -f /var/lib/openqa/share/tests/*/.git/config'}, timeout => 600,
fail_message => 'the test distribution should be checked out by openQA automatically' unless get_var('OPENQA_FROM_GIT');
clear_root_console;
}

Expand Down

0 comments on commit f24d945

Please sign in to comment.