summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbertagaz <bertagaz@ptitcanardnoir.org>2018-11-07 16:35:51 +0100
committerbertagaz <bertagaz@ptitcanardnoir.org>2018-11-07 16:35:51 +0100
commit2d747ceb17dc10390dfd82e23af876287125dc42 (patch)
tree373daab0c50a260dfc1c890faa38e8f7b3f40dee
parent6dcf7e9287d32d818d6fdb04b55e2c19415521f9 (diff)
Test suite: Fix file_empty? semantic.
Refs: #14596
-rw-r--r--features/support/helpers/vm_helper.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/features/support/helpers/vm_helper.rb b/features/support/helpers/vm_helper.rb
index 80bf4d7..13ad4e2 100644
--- a/features/support/helpers/vm_helper.rb
+++ b/features/support/helpers/vm_helper.rb
@@ -523,10 +523,7 @@ class VM
end
def file_empty?(file)
- if file_exist?(file)
- return file_content(file).empty?
- end
- return true
+ return file_content(file).empty?
end
def directory_exist?(directory)