@ -415,6 +415,38 @@ lightgreen 1 i386 green 2
self . assertEqual ( self . amqp_requests ,
self . assertEqual ( self . amqp_requests ,
set ( [ ' debci-series-amd64:lightgreen ' , ' debci-series-i386:lightgreen ' ] ) )
set ( [ ' debci-series-amd64:lightgreen ' , ' debci-series-i386:lightgreen ' ] ) )
def test_rdepends_unbuilt_unstable_only ( self ) :
''' Unbuilt reverse dependency which is not in testing '''
self . swift . set_results ( { ' autopkgtest-series ' : {
' series/i386/d/darkgreen/20150101_100000@ ' : ( 0 , ' darkgreen 1 ' ) ,
' series/amd64/d/darkgreen/20150101_100001@ ' : ( 0 , ' darkgreen 1 ' ) ,
' series/i386/l/lightgreen/20150101_100000@ ' : ( 0 , ' lightgreen 1 ' ) ,
' series/amd64/l/lightgreen/20150101_100000@ ' : ( 0 , ' lightgreen 1 ' ) ,
' series/i386/g/green/20150101_020000@ ' : ( 0 , ' green 1 ' ) ,
' series/amd64/g/green/20150101_020000@ ' : ( 0 , ' green 1 ' ) ,
' series/i386/g/green/20150101_100200@ ' : ( 0 , ' green 2 ' ) ,
' series/amd64/g/green/20150101_100201@ ' : ( 0 , ' green 2 ' ) ,
} } )
# run britney once to pick up previous results
self . do_test (
[ ( ' libgreen1 ' , { ' Version ' : ' 2 ' , ' Source ' : ' green ' , ' Depends ' : ' libc6 ' } , ' autopkgtest ' ) ] ,
VALID_CANDIDATE )
os . unlink ( self . fake_amqp )
# add new uninstallable brokengreen; should not run test at all
self . do_test (
[ ( ' brokengreen ' , { ' Version ' : ' 1 ' , ' Depends ' : ' libgreen1, nonexisting ' } , ' autopkgtest ' ) ] ,
VALID_CANDIDATE ,
[ r ' \ bgreen \ b.*>1</a> to .*>2< ' ,
r ' \ bbrokengreen \ b.*- to .*>1< ' ,
r ' autopkgtest for green 2: .*amd64.*Pass.*i386.*Pass ' ,
r ' autopkgtest for darkgreen 1: .*amd64.*Pass.*i386.*Pass ' ,
' Not considered ' , # for brokengreen
r ' brokengreen/amd64 unsatisfiable Depends: nonexisting ' ] ,
[ ' autopkgtest for brokengreen ' ] )
self . assertEqual ( self . amqp_requests , set ( ) )
def test_hint_force_badtest ( self ) :
def test_hint_force_badtest ( self ) :
''' force-badtest hint '''
''' force-badtest hint '''