Enable hg integration test (#10385)
Some checks are pending
EOL CI / EOL Sanity (Ⓐ2.16) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py2.7) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.11) (push) Waiting to run
EOL CI / EOL Units (Ⓐ2.16+py3.6) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/3/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/1/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/2/) (push) Waiting to run
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/3/) (push) Waiting to run
nox / Run extra sanity tests (push) Waiting to run

Fixes: #10044

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2025-07-12 03:34:18 -07:00 committed by GitHub
commit baf1cdec09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 67 deletions

View file

@ -4,17 +4,13 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: set where to extract the repo
- name: set variables for tests
set_fact:
repo: "http://hg.code.sf.net/p/cg-hg-test-repo/hgtest"
checkout_dir: "{{ remote_tmp_dir }}/hg_project_test"
- name: set what repo to use
set_fact:
repo: "http://hg.pf.osdn.net/view/a/ak/akasurde/hg_project_test"
- name: clean out the remote_tmp_dir
shell: rm -rf {{ remote_tmp_dir }}/*
shell: rm -rf "{{ checkout_dir }}"
- name: verify that mercurial is installed so this test can continue
shell: which hg
@ -25,8 +21,6 @@
dest: "{{ checkout_dir }}"
register: hg_result
- debug: var=hg_result
- shell: ls {{ checkout_dir }}
- name: verify information about the initial clone
@ -45,23 +39,20 @@
- debug: var=hg_result2
- name: check for tags
- name: check if tags exists
stat:
path: "{{ checkout_dir }}/.hgtags"
register: tags
register: hg_tags
- name: check for remotes
stat:
path: "{{ checkout_dir }}/.hg/branch"
register: branches
- debug: var=tags
- debug: var=branches
- name: assert presence of tags/trunk/branches
assert:
that:
- "tags.stat.isreg"
- "hg_tags.stat.isreg"
- "branches.stat.isreg"
- name: verify on a re-clone things are marked unchanged
@ -71,7 +62,7 @@
- name: Checkout non-existent repo clone
hg:
repo: "http://hg.pf.osdn.net/view/a/ak/akasurde/hg_project_test_1"
repo: "http://hg.code.sf.net/p/cg-hg-test-repo1"
clone: false
update: false
register: hg_result3
@ -80,6 +71,5 @@
- name: Verify result of non-existent repo clone
assert:
that:
- hg_result3.msg
- "'abort: HTTP Error 404: Not Found' in hg_result3.msg"
- "'abort: HTTP Error' in hg_result3.msg"
- "not hg_result3.changed"