@@ -73,13 +73,16 @@ def newcache(x):
7373
7474 with Submitter (cache_dir = newcache ("shelly_sub" ), environment = docker ) as sub :
7575 result = sub (shelly )
76- assert attrs_values (result .outputs ) == outputs_dict
7776
7877 outputs = shelly (environment = docker , cache_dir = newcache ("shelly_call" ))
7978 # If busybox isn't found locally, then the stderr will have the download progress from
8079 # the Docker auto-pull in it
8180 for key in ["stdout" , "return_code" ]:
82- assert outputs_dict [key ] == attrs_values (outputs )[key ]
81+ assert (
82+ outputs_dict [key ]
83+ == attrs_values (outputs )[key ]
84+ == attrs_values (result .outputs )[key ]
85+ )
8386
8487
8588@no_win
@@ -167,14 +170,17 @@ def newcache(x):
167170 assert shelly .cmdline == cmd
168171 outputs_dict = sing .execute (shelly_job )
169172
170- with Submitter (worker = plugin ) as sub :
173+ with Submitter (worker = plugin , cache_dir = newcache ( "shelly_sub" ) ) as sub :
171174 results = sub (shelly )
172- assert outputs_dict == attrs_values (results .outputs )
173175
174176 outputs = shelly (environment = sing , cache_dir = newcache ("shelly_call" ))
175177 # singularity gives info about cashed image in stderr
176178 for key in ["stdout" , "return_code" ]:
177- assert outputs_dict [key ] == attrs_values (outputs )[key ]
179+ assert (
180+ outputs_dict [key ]
181+ == attrs_values (outputs )[key ]
182+ == attrs_values (results .outputs )[key ]
183+ )
178184
179185
180186def shelly_with_input_factory (filename , executable ) -> ShellDef :
0 commit comments