File tree 3 files changed +5
-8
lines changed
tests/by_image/base-notebook
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 8
8
# If we are in a JupyterHub, we pass on to `start-singleuser.py` instead so it does the right thing
9
9
if "JUPYTERHUB_API_TOKEN" in os .environ :
10
10
print (
11
- "WARNING: using start-singleuser.py instead of start-notebook.py to start a server associated with JupyterHub."
11
+ "WARNING: using start-singleuser.py instead of start-notebook.py to start a server associated with JupyterHub." ,
12
+ flush = True ,
12
13
)
13
14
command = ["/usr/local/bin/start-singleuser.py" ] + sys .argv [1 :]
14
15
os .execvp (command [0 ], command )
40
41
command += sys .argv [1 :]
41
42
42
43
# Execute the command!
43
- print ("Executing: " + " " .join (command ))
44
+ print ("Executing: " + " " .join (command ), flush = True )
44
45
os .execvp (command [0 ], command )
Original file line number Diff line number Diff line change 20
20
command += sys .argv [1 :]
21
21
22
22
# Execute the command!
23
- print ("Executing: " + " " .join (command ))
23
+ print ("Executing: " + " " .join (command ), flush = True )
24
24
os .execvp (command [0 ], command )
Original file line number Diff line number Diff line change @@ -42,11 +42,7 @@ def test_start_notebook(
42
42
f"Test that the start-notebook.py launches the { expected_command } server from the env { env } ..."
43
43
)
44
44
host_port = find_free_port ()
45
- container .run_detached (
46
- tty = True ,
47
- environment = env ,
48
- ports = {"8888/tcp" : host_port },
49
- )
45
+ container .run_detached (environment = env , ports = {"8888/tcp" : host_port })
50
46
# sleeping some time to let the server start
51
47
time .sleep (2 )
52
48
logs = container .get_logs ()
You can’t perform that action at this time.
0 commit comments