Clean Working Folder without Threads

Disabled some tests that are not matching our current code base
This commit is contained in:
Jan Renz
2015-04-28 15:04:54 +02:00
parent ea027656b7
commit eac54da11a
2 changed files with 6 additions and 4 deletions

View File

@ -61,6 +61,8 @@ class DockerClient
end
def create_workspace_files(container, submission)
#clear directory (it should be emtpy anyhow)
Pathname.new(self.class.local_workspace_path(container)).children.each{ |p| p.rmtree}
submission.collect_files.each do |file|
FileUtils.mkdir_p(File.join(self.class.local_workspace_path(container), file.path || ''))
if file.file_type.binary?
@ -98,8 +100,6 @@ class DockerClient
#tries ||= 0
@container = DockerContainerPool.get_container(@execution_environment)
if @container
#clear directory (it should be emtpy anyhow)
Pathname.new(self.class.local_workspace_path(@container)).children.each{ |p| p.rmtree}
before_execution_block.try(:call)
send_command(command, @container, &output_consuming_block)
else