testlab 1.20.4 → 1.20.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTQ1NmM1Y2QwZmZkMDRmYWI1YjdkZDYxYTcwOWJkNGIxNDc3ZTkzNw==
4
+ ZGVmYjE2YjI2NmI0MWEwMDA1NWQ3NjQ4NTI3NWQxNGE3OTMyZWVmYw==
5
5
  data.tar.gz: !binary |-
6
- ZjY5MzAyY2M5MDU5YzRjZGY2MmNjNGNhOWUzZjY1MzA0YzA4MTdjNQ==
6
+ YTY0Y2FhMWZhMmMzMmE2ZGZkNTRjODUxODgzMDk5ZGRjYmU4YjUwZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmQzYWJjNjIyODgxYmY5Y2Y0YzcxODg3N2MxYWJmOGViYWQwN2NiYTRhODA2
10
- YzMzODY1Zjg4OWZiZDlkOWRkMzFiODMzNWQ1OTA2NjIyNTg3ZDVkNzQyODRj
11
- NTVjMWJjNjVkOGZkZGEyN2JhMjRiZGQ4ZjcwNmU0NWU5NGQzMjU=
9
+ NzFlNzQ1ZGQ1MGJkOWM0ZDQwNTI4MDYxMDFiNGE1Nzg4NDk3YTRlNGJmNzQx
10
+ ZjM1YTAwMjkyNmQxN2E5YjVjYmNiYmRhZjczMWFjMDM3NmI0OGJmM2M0MjM2
11
+ NWY1NTFiYWIxZDZlNzAzNjYxMjZjZGU3OTNkNzczMGE1MGFjNTk=
12
12
  data.tar.gz: !binary |-
13
- Njg4NmNiNGYyNjUxYWExNDNmOTFmNDEwMDA2YWNkNjMxZTlhZDA2MDgxOGRl
14
- NDA1MDdhZGU0N2Y4OTMwNjhlMWYwYjE3YTQyNmRhNjkxOTg0ZDEzNmFhYWY5
15
- ZjRjMjU5ZTJiOTdmYmZlZjcwZTI4ODRhZjBkNjc1ZmFmNTQxNmQ=
13
+ MzFjMTU3NDliYmVlMDgyZDM2NGE5YjA4YzBiNzVhNDBlMDA2NTA2NGQ1ZmM1
14
+ MTkxYTA4NDNhMDk2NjdmY2E4N2FhZDI1MWNmNDdjMzMzMTljMzRjMGQwYzc5
15
+ ZTI4NmFiMzBiMmY2ZDQwODYzMjgyOGFhNGE4ZjM4NjY2ZTUyY2Y=
@@ -55,8 +55,7 @@ class TestLab
55
55
  private
56
56
 
57
57
  def add_nfs_mounts(container)
58
- @command.exec(<<-EOF)
59
- set -x
58
+ script = <<-EOF
60
59
  #{service_check}
61
60
  grep '#{def_tag(container)}' /etc/exports && exit 0
62
61
  cat <<EOI | #{sudo} tee -a /etc/exports
@@ -66,6 +65,14 @@ cat <<EOI | #{sudo} tee -a /etc/exports
66
65
  EOI
67
66
  #{restart_service_command}
68
67
  EOF
68
+
69
+ tempfile = Tempfile.new('script')
70
+ tempfile.write(script)
71
+ tempfile.flush
72
+
73
+ command = %(/bin/bash -x #{tempfile.path})
74
+
75
+ @command.exec(command)
69
76
  end
70
77
 
71
78
  def remove_nfs_mounts(container)
@@ -1,6 +1,6 @@
1
1
  class TestLab
2
2
  unless const_defined?(:VERSION)
3
3
  # TestLab Gem Version
4
- VERSION = "1.20.4"
4
+ VERSION = "1.20.5"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.4
4
+ version: 1.20.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Patten