Sha256: f558de231e0b1b409b6887c1296f4dacc343f8b3910ae9f585192ca0593b8be3
Contents?: true
Size: 1.39 KB
Versions: 3
Compression:
Stored size: 1.39 KB
Contents
--- Test the env feature in S::Cmd (env_cmd.yml): !S::Suite contents: - Check the env propagation with S::Cmd: !S::Suite attributes: !S::Cmd 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.3.5.0 | test/functional/env_cmd.yml |
uttk-0.3.6.1 | test/functional/env_cmd.yml |
uttk-0.3.1.2 | test/functional/env_cmd.yml |