Sha256: c93c5b9a5b0c8cb4130a0d4f46886309dfcacb5fc9abe6cdac328fc2c9b8a6b6
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
--- Test the env feature in S::Command (env_cmd.yml): !S::Suite contents: - Check the env propagation with S::Command: !S::Suite attributes: !S::Command command: <<ruby>> -e "print ENV['FOO']" exit: 0 contents: - simple env: env: FOO: bar DISPLAY: foo.bar:0 output: bar - set symtbl[:bar] to 42: !S::Block test: @symtbl[:bar] = 42 weight: 0 - advanced test <<bar>>: env: { FOO: <<bar>> } output: 42 - set symtbl[:foo] to 44: !S::Block test: @symtbl[:foo] = 44 weight: 0 - double substitution test <<bar>>: env: { FOO: <<bar>>43<<foo>> } output: 424344 --- # FIXME these tests below was not ran since a long time the env feature no # more works on blocks. symbols: env: A: B C: <<pwd>>/D attributes: !S::Block {} contents: - Verify A in env: test: "ENV['A'] == 'B'" - Verify the suffix of C in env: test: "ENV['C'] =~ /\/D$/" - Verify the prefix of C in env: test: "ENV['C'] == '<<pwd>>/D'" - Append something to A: symbols: env: A: $A:E test: "ENV['A'] == 'B:E'"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uttk-0.4.6.2 | test/functional/env_cmd.yml |
uttk-0.4.5.0 | test/functional/env_cmd.yml |
uttk-0.4.6.1 | test/functional/env_cmd.yml |