@@ -648,8 +648,6 @@ impl<'test> TestCx<'test> {
648648 }
649649
650650 fn run_debuginfo_cdb_test ( & self ) {
651- assert ! ( self . revision. is_none( ) , "revisions not relevant here" ) ;
652-
653651 let config = Config {
654652 target_rustcflags : self . cleanup_debug_info_options ( & self . config . target_rustcflags ) ,
655653 host_rustcflags : self . cleanup_debug_info_options ( & self . config . host_rustcflags ) ,
@@ -695,7 +693,12 @@ impl<'test> TestCx<'test> {
695693
696694 // Parse debugger commands etc from test files
697695 let DebuggerCommands { commands, check_lines, breakpoint_lines, .. } =
698- match DebuggerCommands :: parse_from ( & self . testpaths . file , self . config , prefixes) {
696+ match DebuggerCommands :: parse_from (
697+ & self . testpaths . file ,
698+ self . config ,
699+ prefixes,
700+ self . revision ,
701+ ) {
699702 Ok ( cmds) => cmds,
700703 Err ( e) => self . fatal ( & e) ,
701704 } ;
@@ -756,8 +759,6 @@ impl<'test> TestCx<'test> {
756759 }
757760
758761 fn run_debuginfo_gdb_test ( & self ) {
759- assert ! ( self . revision. is_none( ) , "revisions not relevant here" ) ;
760-
761762 let config = Config {
762763 target_rustcflags : self . cleanup_debug_info_options ( & self . config . target_rustcflags ) ,
763764 host_rustcflags : self . cleanup_debug_info_options ( & self . config . host_rustcflags ) ,
@@ -783,7 +784,12 @@ impl<'test> TestCx<'test> {
783784 } ;
784785
785786 let DebuggerCommands { commands, check_lines, breakpoint_lines } =
786- match DebuggerCommands :: parse_from ( & self . testpaths . file , self . config , prefixes) {
787+ match DebuggerCommands :: parse_from (
788+ & self . testpaths . file ,
789+ self . config ,
790+ prefixes,
791+ self . revision ,
792+ ) {
787793 Ok ( cmds) => cmds,
788794 Err ( e) => self . fatal ( & e) ,
789795 } ;
@@ -1005,8 +1011,6 @@ impl<'test> TestCx<'test> {
10051011 }
10061012
10071013 fn run_debuginfo_lldb_test ( & self ) {
1008- assert ! ( self . revision. is_none( ) , "revisions not relevant here" ) ;
1009-
10101014 if self . config . lldb_python_dir . is_none ( ) {
10111015 self . fatal ( "Can't run LLDB test because LLDB's python path is not set." ) ;
10121016 }
@@ -1059,7 +1063,12 @@ impl<'test> TestCx<'test> {
10591063
10601064 // Parse debugger commands etc from test files
10611065 let DebuggerCommands { commands, check_lines, breakpoint_lines, .. } =
1062- match DebuggerCommands :: parse_from ( & self . testpaths . file , self . config , prefixes) {
1066+ match DebuggerCommands :: parse_from (
1067+ & self . testpaths . file ,
1068+ self . config ,
1069+ prefixes,
1070+ self . revision ,
1071+ ) {
10631072 Ok ( cmds) => cmds,
10641073 Err ( e) => self . fatal ( & e) ,
10651074 } ;
0 commit comments