File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
lib/ramble/ramble/test/cmd Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -2240,3 +2240,29 @@ def test_workspace_info_software(request):
22402240 assert "spack-pkg" in output
22412241 assert "pip-test" in output
22422242 assert "spack-test" not in output
2243+
2244+
2245+ def test_workspace_no_empty_workloads (request ):
2246+ workspace_name = request .node .name
2247+ global_args = ["-w" , workspace_name ]
2248+
2249+ with ramble .workspace .create (workspace_name ) as ws :
2250+ ws .write ()
2251+
2252+ workspace (
2253+ "manage" ,
2254+ "experiments" ,
2255+ "basic" ,
2256+ "--wf" ,
2257+ "nothing*" ,
2258+ "-v" ,
2259+ "n_nodes=1" ,
2260+ "-v" ,
2261+ "n_ranks=1" ,
2262+ global_args = global_args ,
2263+ )
2264+
2265+ with open (ws .config_file_path ) as f :
2266+ data = f .read ()
2267+ assert "basic:" not in data
2268+ assert "workloads: {}" not in data
You can’t perform that action at this time.
0 commit comments