File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
def quoted_output (container : Container , cmd : str ) -> str :
13
13
cmd_output = DockerRunner .run_simple_command (container , cmd , print_result = False )
14
- # For example, `mamba info --quiet ` adds redundant empty lines
14
+ # For example, `mamba info` adds redundant empty lines
15
15
cmd_output = cmd_output .strip ("\n " )
16
16
# For example, R packages list contains trailing backspaces
17
17
cmd_output = "\n " .join (line .rstrip () for line in cmd_output .split ("\n " ))
18
+
19
+ assert cmd_output , f"Command `{ cmd } ` returned empty output"
20
+
18
21
return f"""\
19
22
`{ cmd } `:
20
23
@@ -76,7 +79,9 @@ def markdown_piece(container: Container) -> str:
76
79
77
80
{ DockerRunner .run_simple_command (container , "python --version" )}
78
81
79
- { quoted_output (container , "mamba info --quiet" )}
82
+ { quoted_output (container , "conda info" )}
83
+
84
+ { quoted_output (container , "mamba info" )}
80
85
81
86
{ quoted_output (container , "mamba list" )} """
82
87
You can’t perform that action at this time.
0 commit comments