summaryrefslogtreecommitdiffstats
path: root/test/packaging/option--package-type.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/packaging/option--package-type.py')
-rw-r--r--test/packaging/option--package-type.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/packaging/option--package-type.py b/test/packaging/option--package-type.py
index c1d6720..2a898ff 100644
--- a/test/packaging/option--package-type.py
+++ b/test/packaging/option--package-type.py
@@ -30,7 +30,6 @@ Test the --package-type option.
import TestSCons
-machine = TestSCons.machine
_python_ = TestSCons._python_
test = TestSCons.TestSCons()
@@ -68,12 +67,12 @@ env.Package( NAME = 'foo',
""" % locals())
src_rpm = 'foo-1.2.3-0.src.rpm'
-machine_rpm = 'foo-1.2.3-0.%s.rpm' % machine
+machine_rpm = 'foo-1.2.3-0.*.rpm'
test.run(arguments='package PACKAGETYPE=rpm', stderr = None)
test.must_exist( src_rpm )
-test.must_exist( machine_rpm )
+test.must_exist_one_of( [machine_rpm] )
test.must_not_exist( 'bin/main.c' )
test.must_not_exist( '/bin/main.c' )
@@ -81,7 +80,7 @@ test.run(arguments='-c package PACKAGETYPE=rpm', stderr = None)
test.run(arguments='package --package-type=rpm', stderr = None)
test.must_exist( src_rpm )
-test.must_exist( machine_rpm )
+test.must_exist_one_of( [machine_rpm] )
test.must_not_exist( 'bin/main.c' )
test.must_not_exist( '/bin/main.c' )