Skip to content

Commit

Permalink
Fix 09_install_with_multi_repos_in_single_file_non_interactive.py
Browse files Browse the repository at this point in the history
  • Loading branch information
asdil12 committed Dec 2, 2024
1 parent ff6ae35 commit 3b3f425
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
subprocess.check_call("rm -v /etc/zypp/repos.d/*.repo", shell=True)
subprocess.check_call("mv -v /tmp/singlefile.repo /etc/zypp/repos.d/", shell=True)

c = pexpect.spawn('./bin/opi -n html2text', logfile=sys.stdout.buffer, echo=False)
c = pexpect.spawn('./bin/opi -n tmux', logfile=sys.stdout.buffer, echo=False)

c.expect(r'([0-9]+)\. html2text', timeout=10)
c.expect(r'([0-9]+)\. tmux', timeout=10)
c.expect('Pick a number')
c.expect(r'([0-9]+)\. [^ ]*(openSUSE-Tumbleweed-Oss|Main Repository)', timeout=10)
c.expect('Installing from existing repo', timeout=10)
Expand All @@ -20,7 +20,7 @@
c.close()
print()
assert c.exitstatus == 0, f'Exit code: {c.exitstatus}'
subprocess.check_call(['rpm', '-qi', 'html2text'])
subprocess.check_call(['rpm', '-qi', 'tmux'])


c = pexpect.spawn('./bin/opi -n zfs', logfile=sys.stdout.buffer, echo=False)
Expand Down

0 comments on commit 3b3f425

Please sign in to comment.