diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-07 11:45:59 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-07 11:45:59 +0000 |
commit | 573e3487d99e76a311cf4b82ba0af95943182d20 (patch) | |
tree | 58b81a0ae3ee5b68348e3b2bab4771f0ff8bc742 /t | |
parent | a50f282e577e45d929902d342554f9a3519b9901 (diff) | |
download | urpmi-573e3487d99e76a311cf4b82ba0af95943182d20.tar urpmi-573e3487d99e76a311cf4b82ba0af95943182d20.tar.gz urpmi-573e3487d99e76a311cf4b82ba0af95943182d20.tar.bz2 urpmi-573e3487d99e76a311cf4b82ba0af95943182d20.tar.xz urpmi-573e3487d99e76a311cf4b82ba0af95943182d20.zip |
add a test showing the lack of promotion
Diffstat (limited to 't')
-rw-r--r-- | t/superuser--split-transactions--strict-require-and-obsolete.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/superuser--split-transactions--strict-require-and-obsolete.t b/t/superuser--split-transactions--strict-require-and-obsolete.t index 6ad4aec9..f02cfbeb 100644 --- a/t/superuser--split-transactions--strict-require-and-obsolete.t +++ b/t/superuser--split-transactions--strict-require-and-obsolete.t @@ -22,6 +22,9 @@ urpmi_addmedia("$name-2 $::pwd/media/$name-2"); test('--split-length 0'); test('--split-level 1'); # was broken (#31969) +test_c('--split-length 0'); +test_c('--split-level 1'); + sub test { my ($option) = @_; @@ -31,3 +34,14 @@ sub test { urpmi("--media $name-2 $option --auto --auto-select"); check_installed_fullnames_and_remove('a-1-1', 'b-2-1', 'c-2-1'); } + +sub test_c { + my ($option) = @_; + + urpmi("--media $name-1 --auto a"); + check_installed_fullnames('a-1-1', 'bb-1-1', 'c-1-1'); + + #- below would need the promotion of "b" (obsoleting bb) to work + urpmi("--media $name-2 $option --auto c"); + check_installed_fullnames_and_remove('c-2-1'); # a and bb are removed +} |