summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-04-10 18:30:53 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-28 20:58:59 +0200
commitaee22dfd270ecdd3afb8f42cdda6d346c3705679 (patch)
tree78975c204e2acea562fe7ab140b240c79365af91 /t
parentb23808f26cac2456cc0c459314130adabfe90e6e (diff)
downloadurpmi-aee22dfd270ecdd3afb8f42cdda6d346c3705679.tar
urpmi-aee22dfd270ecdd3afb8f42cdda6d346c3705679.tar.gz
urpmi-aee22dfd270ecdd3afb8f42cdda6d346c3705679.tar.bz2
urpmi-aee22dfd270ecdd3afb8f42cdda6d346c3705679.tar.xz
urpmi-aee22dfd270ecdd3afb8f42cdda6d346c3705679.zip
perform some file conflict tests only on Mageia
rationale: Mageia's rpm is patched in order to not conflict for doc files:
Diffstat (limited to 't')
-rw-r--r--t/superuser--file-conflicts.t42
1 files changed, 30 insertions, 12 deletions
diff --git a/t/superuser--file-conflicts.t b/t/superuser--file-conflicts.t
index eaaa0550..53301c0a 100644
--- a/t/superuser--file-conflicts.t
+++ b/t/superuser--file-conflicts.t
@@ -53,8 +53,14 @@ sub test_rpm_same_transaction() {
test_rpm_i_succeeds('fa', 'fb');
check_installed_and_remove('fa', 'fb');
- test_rpm_i_succeeds('h', 'i');
- check_installed_and_remove('h', 'i');
+ # Mageia's rpm is patched in order to not conflict for doc files:
+ if (is_mageia()) {
+ test_rpm_i_succeeds('h', 'i');
+ check_installed_and_remove('h', 'i');
+ } else {
+ test_rpm_i_fail('h', 'i');
+ check_nothing_installed();
+ }
}
sub test_rpm_different_transactions() {
@@ -98,14 +104,20 @@ sub test_rpm_different_transactions() {
check_installed_and_remove('a', 'ga');
check_no_etc_files();
- test_rpm_i_succeeds('h');
- test_rpm_i_succeeds('i');
- check_installed_and_remove('h', 'i');
+ # Mageia's rpm is patched in order to not conflict for doc files:
+ if (is_mageia()) {
+ test_rpm_i_succeeds('h');
+ test_rpm_i_succeeds('i');
+ check_installed_and_remove('h', 'i');
+ }
}
sub test_urpmi_same_transaction() {
- test_urpmi_fail('a b');
- check_nothing_installed();
+ # Mageia's rpm is patched in order to not conflict for doc files:
+ if (is_mageia()) {
+ test_urpmi_fail('a b');
+ check_nothing_installed();
+ }
urpmi('a c');
check_installed_and_remove('a', 'c');
@@ -122,8 +134,11 @@ sub test_urpmi_same_transaction() {
urpmi('fa fb');
check_installed_and_remove('fa', 'fb');
- urpmi('h i');
- check_installed_and_remove('h', 'i');
+ # Mageia's rpm is patched in order to not conflict for doc files:
+ if (is_mageia()) {
+ urpmi('h i');
+ check_installed_and_remove('h', 'i');
+ }
}
sub test_urpmi_different_transactions() {
@@ -168,9 +183,12 @@ sub test_urpmi_different_transactions() {
check_installed_and_remove('a', 'ga');
check_no_etc_files();
- urpmi('h');
- urpmi('i');
- check_installed_and_remove('h', 'i');
+ # Mageia's rpm is patched in order to not conflict for doc files:
+ if (is_mageia()) {
+ urpmi('h');
+ urpmi('i');
+ check_installed_and_remove('h', 'i');
+ }
}
sub test_rpm_i_succeeds {