use suffix instead of hardcoded number

the hardcoded number is wrong for 2-DVD, use suffix variable instead.
This commit is contained in:
2015-03-14 04:58:30 +08:00
parent 3183be42c3
commit bf289085c7
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,10 @@
# common part
## common part
#ifdef __x86_64__
system x86_64 rpm
#endif
#ifdef __ppc64le__
system ppc64le rpm
#endif
namespace namespace:language(en_US) @SYSTEM
job install provides pattern() = apparmor

View File

@@ -43,7 +43,7 @@ function regenerate_pl() {
echo "repo $i 0 solv $i.solv" >> $tcfile
fi
done
cpp -E -U__ppc64__ -U__x86_64__ -D__$arch\__ $SCRIPTDIR/create_test_$target\_dvd-1.testcase >> $tcfile
cpp -E -U__ppc64__ -U__x86_64__ -D__$arch\__ $SCRIPTDIR/create_test_$target\_dvd-$suffix.testcase >> $tcfile
out=$(mktemp)
testsolv -r $tcfile > $out