'echo PWD=$(pwd)' -> 'echo_pwd.rb' for Windows

missed in earlier commit 6a7bdbd
This commit is contained in:
Johan Holmberg 2016-11-07 10:58:34 +01:00
parent 06b011204a
commit bb2e7bf4a7

View File

@ -91,13 +91,13 @@ class CMDTEST_chdir < Cmdtest::Testcase
create_CMDTEST_foo [ create_CMDTEST_foo [
"create_file 'SUBDIR/.flagfile', ''", "create_file 'SUBDIR/.flagfile', ''",
"Dir.chdir 'SUBDIR'", "Dir.chdir 'SUBDIR'",
"cmd 'echo PWD=$(pwd)' do", "cmd 'echo_pwd.rb' do",
" stdout_equal /^PWD=\\/.*\\/top\\/work\\/SUBDIR$/", " stdout_equal /^PWD=(?:\\w:)?\\/.*\\/top\\/work\\/SUBDIR$/",
"end", "end",
] ]
cmd_cmdtest do cmd_cmdtest do
stdout_equal [ stdout_equal [
"### echo PWD=$(pwd)", "### echo_pwd.rb",
] ]
end end
end end