@@ -1000,16 +1000,22 @@ exports.setHeaded = (bsConfig, args) => {
1000
1000
logger . debug ( `headless mode set to ${ bsConfig . run_settings . headless } ` ) ;
1001
1001
} ;
1002
1002
1003
+ exports . isConflictingBooleanValues = ( value1 , value2 ) => {
1004
+ return ( value1 . toString ( ) == "true" && value2 . toString ( ) == "false" ) || ( value1 . toString ( ) == "false" && value2 . toString ( ) == "true" )
1005
+ } ;
1006
+
1007
+ exports . isNonBooleanValue = ( value ) => {
1008
+ return value . toString ( ) != "true" && value . toString ( ) != "false" ;
1009
+ } ;
1010
+
1003
1011
exports . setInteractiveCapability = ( bsConfig ) => {
1004
- let interactiveDegugging = true ;
1005
- if ( bsConfig . interactive_debugging != undefined ) {
1006
- interactiveDegugging = bsConfig . interactive_debugging ;
1007
- }
1008
- if ( bsConfig . interactiveDegugging != undefined ) {
1009
- interactiveDegugging = bsConfig . interactiveDegugging ;
1010
- }
1011
- console . log ( `roshan1: the interactiveDegugging ${ interactiveDegugging } ::` ) ;
1012
- bsConfig . interactiveDegugging = interactiveDegugging ;
1012
+ let interactiveDebuggingTemp = "true" ;
1013
+ let interactive_debugging = bsConfig . run_settings . interactive_debugging ;
1014
+ let interactiveDebugging = bsConfig . run_settings . interactiveDebugging ;
1015
+ if ( ! isNonBooleanValue ( interactive_debugging ) ) interactiveDebuggingTemp = interactive_debugging ;
1016
+ else if ( ! isNonBooleanValue ( interactiveDebugging ) ) interactiveDebuggingTemp = interactiveDebugging ;
1017
+ logger . debug ( `Setting interactiveDebugging flag to ${ interactiveDebuggingTemp } ` ) ;
1018
+ bsConfig . run_settings . interactiveDebugging = interactiveDebuggingTemp ;
1013
1019
}
1014
1020
1015
1021
exports . setNoWrap = ( _bsConfig , args ) => {
0 commit comments