shokai / arduino_firmata

Arduino Firmata protocol implementation on Ruby
http://shokai.github.io/arduino_firmata
MIT License
104 stars 23 forks source link

Sysex test is failing #43

Closed dapicester closed 8 years ago

dapicester commented 8 years ago

It seems that the sysex command is not properly handled.

$ rake test TEST=/home/paolo/projects/contrib/arduino_firmata/test/test_sysex.rb
Run options: --seed 14609

# Running:

F

Finished in 11.043371s, 0.0906 runs/s, 0.0906 assertions/s.

  1) Failure:
TestSysex#test_sysex_command [/home/paolo/projects/contrib/arduino_firmata/test/test_sysex.rb:30]:
Failed assertion, no message given.

1 runs, 1 assertions, 1 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -I"lib" -I"/home/paolo/.rvm/gems/ruby-2.3.0@arduino/gems/rake-10.1.0/lib" "/home/paolo/.rvm/gems/ruby-2.3.0@arduino/gems/rake-10.1.0/lib/rake/rake_test_loader.rb" "/home/paolo/projects/contrib/arduino_firmata/test/test_sysex.rb" ]
/home/paolo/.rvm/gems/ruby-2.3.0@arduino/bin/ruby_executable_hooks:15:in `eval'
/home/paolo/.rvm/gems/ruby-2.3.0@arduino/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => test
(See full trace by running task with --trace)

I am running Firmata 2.5.

I had to update both serialport and backports to get things working, I don't know if it is related to this issue.

dapicester commented 8 years ago

Sorry, I just noticed that on top of test/test_sysex.rb it is written to use the SystexLedBlinkFirmata firmware in the /samples/sysex directory. Test passes with that firmware.