let specinfra support empty block device content

This commit is contained in:
Dominik Richter 2015-09-15 16:54:47 +02:00
parent daf0602b93
commit b13a1b574d

View file

@ -245,7 +245,7 @@ module Vulcano::Backends
def content
s = Specinfra::Runner.get_file_content(@path).stdout.strip
if s.empty? && (size.nil? or size > 0 or block_device?)
if s.empty? && (size.nil? or size > 0)
nil
else
s