Avoid relying on filesystem macro values in test suite
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 6 Mar 2013 11:17:21 +0000 (13:17 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jun 2013 07:26:13 +0000 (10:26 +0300)
- The test-suite expected results are hardcoded, so we can't rely
  on rpm-defined macros as those reflect rpm's own configuration
  which could be something entirely different than our expectations.
- Fixes another big pile of false positives in the test suite
(cherry picked from commit 62e73943576acf19d212cac4f54b8c449c69531b)

tests/data/SPECS/configtest.spec
tests/data/SPECS/conflicttest.spec
tests/data/SPECS/flangtest.spec

index 5f15c34..17dd7c9 100644 (file)
@@ -1,3 +1,6 @@
+# avoid depending on rpm configuration
+%define _sysconfdir /etc
+
 %{!?filetype: %global filetype file}
 
 Name:          configtest%{?sub:-%{sub}}
index bd1dd1c..46fbb29 100644 (file)
@@ -1,3 +1,6 @@
+# avoid depending on rpm configuration
+%define _datadir /usr/share
+
 Name:          conflict%{pkg}
 Version:       1.0
 Release:       1
index 3f36795..a48ba39 100644 (file)
@@ -1,3 +1,6 @@
+# avoid depending on rpm configuration
+%define _datadir /usr/share
+
 Name:           flangtest 
 Version:        1.0
 Release:        1