summaryrefslogtreecommitdiff
path: root/test/pacman/tests/upgrade083.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pacman/tests/upgrade083.py')
-rw-r--r--test/pacman/tests/upgrade083.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/pacman/tests/upgrade083.py b/test/pacman/tests/upgrade083.py
index 097ae02c..7195e35b 100644
--- a/test/pacman/tests/upgrade083.py
+++ b/test/pacman/tests/upgrade083.py
@@ -3,6 +3,18 @@ self.description = "Install a package (wrong architecture, auto)"
import os
machine = os.uname()[4]
+if machine == 'i686':
+ import re
+ fo = open('/proc/cpuinfo')
+ for line in fo:
+ name_value = [s.strip() for s in line.split(':', 1)]
+ if len(name_value) != 2:
+ continue
+ name, value = name_value
+ if name == "flags":
+ if re.match(r'.*?\bsse2\b', value) is not None:
+ machine = 'pentium4'
+
p = pmpkg("dummy")
p.files = ["bin/dummy",
"usr/man/man1/dummy.1"]