diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-11-17 16:38:50 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-11-17 16:38:50 +0900 |
| commit | 9de7130a9a77482b27a101211ff0f4a63d57a613 (patch) | |
| tree | da4007a02288aead291372e128ddf4a9275c9bef /mrbgems/mruby-bin-mruby/bintest/mruby.rb | |
| parent | 74310f41d74ad1d6622d59278da20627f069f074 (diff) | |
| download | mruby-9de7130a9a77482b27a101211ff0f4a63d57a613.tar.gz mruby-9de7130a9a77482b27a101211ff0f4a63d57a613.zip | |
Support short options concatenation to `mruby` command
#### Before this patch:
```
$ bin/mruby -ce 1
bin/mruby: Cannot open program file: 1
```
#### After this patch:
```
$ bin/mruby -ce 1
Syntax OK
```
Diffstat (limited to 'mrbgems/mruby-bin-mruby/bintest/mruby.rb')
| -rw-r--r-- | mrbgems/mruby-bin-mruby/bintest/mruby.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mrbgems/mruby-bin-mruby/bintest/mruby.rb b/mrbgems/mruby-bin-mruby/bintest/mruby.rb index e032ff79a..8da51bac9 100644 --- a/mrbgems/mruby-bin-mruby/bintest/mruby.rb +++ b/mrbgems/mruby-bin-mruby/bintest/mruby.rb @@ -80,10 +80,8 @@ assert('mruby -c option') do end assert('mruby -d option') do - o = `#{cmd('mruby')} -e #{shellquote('p $DEBUG')}` - assert_equal "false\n", o - o = `#{cmd('mruby')} -d -e #{shellquote('p $DEBUG')}` - assert_equal "true\n", o + assert_mruby("false\n", "", true, ["-e", "p $DEBUG"]) + assert_mruby("true\n", "", true, ["-dep $DEBUG"]) end assert('mruby -e option (no code specified)') do |
