File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ def log(message):
2020 try :
2121 import robot
2222 from robot .libdocpkg import LibraryDocumentation
23+ from robot .conf import RobotSettings
2324 except ImportError :
2425 robot = None
2526
@@ -32,6 +33,7 @@ def log(message):
3233 time .sleep (1 )
3334 import robot
3435 from robot .libdocpkg import LibraryDocumentation
36+ from robot .conf import RobotSettings
3537 log (f" = version { robot .__version__ } \n " )
3638 except Exception as e :
3739 js .console .log (f"Installation Exception: { e } " )
@@ -111,6 +113,8 @@ def write_file(file):
111113 js .console .log (f"Files in working dir: { os .listdir ('.' )} " )
112114 result = - 2
113115
116+ console_links_enabled = "ConsoleLinks" in RobotSettings ._cli_opts
117+
114118 try :
115119 if test_case_name :
116120 kwargs = {"test" : test_case_name }
@@ -122,9 +126,11 @@ def write_file(file):
122126 if robot_arguments :
123127 log (f"Robot Run Arguments: { robot_args } \n " )
124128 log (f"\n Running Robot Framework:\n " )
129+ robot_arguments ["consolelinks" ] = 'off'
125130 else :
126131 log (f"> robot --loglevel TRACE:INFO --exclude EXCL --skip SKIP\n "
127132 f" --removekeywords tag:REMOVE --flattenkeywords tag:FLAT{ testcli } .\n " )
133+ kwargs ["consolelinks" ] = 'off'
128134
129135 org_stdout = sys .__stdout__
130136 org_stderr = sys .__stderr__
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ const getProjectFromLiveDir = async(projectDir) => {
2929
3030const getProject = async ( projectUrl ) => {
3131 console . log ( `Loading data from ${ projectUrl } ` )
32- const configFile = await fetch ( `${ projectUrl } /config.json?token=${ Date . now ( ) } ` )
32+ // const configFile = await fetch(`${projectUrl}/config.json?token=${Date.now()}`)
33+ const configFile = await fetch ( `${ projectUrl } /config.json` )
3334 . then ( response => response . json ( ) )
3435 const project = { name : configFile . name , files : [ ] , description : '' }
3536 if ( configFile . robotVersion ) {
@@ -48,7 +49,8 @@ const getProject = async(projectUrl) => {
4849 }
4950 for ( const file of configFile . files ) {
5051 const { fileName, hidden } = file
51- const content = await fetch ( `${ projectUrl } /${ fileName } ?token=${ Date . now ( ) } ` )
52+ // const content = await fetch(`${projectUrl}/${fileName}?token=${Date.now()}`)
53+ const content = await fetch ( `${ projectUrl } /${ fileName } ` )
5254 . then ( response => response . text ( ) )
5355 project . files . push ( {
5456 fileName,
You can’t perform that action at this time.
0 commit comments