ThrowTheSwitch / Ceedling

Ruby-based unit testing and build system for C projects

Home Page:http://throwtheswitch.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command Hook Executable List not working

MikeExMachina opened this issue · comments

Trying to put multiple executables into this command hook causes the following error:

/var/lib/gems/2.4.0/gems/ceedling-0.31.1/lib/ceedling/configurator.rb:136:in `[]': no implicit conversion of Symbol into Integer (TypeError)

Command Hook in question:

:tools:
  :pre_test_fixture_execute:
    -  :executable: mkdir
       :arguments:
         - -p
         - build/artifacts/valgrind
    -  :executable: valgrind
       :arguments:
         - --track-origins=yes
         - --leak-check=full
         - --show-leak-kinds=all
         - --errors-for-leak-kinds=all
         - --error-exitcode=10
         - --log-file=build/artifacts/valgrind/$(basename ${1} .elf).txt
         - ${1}

This issue has been resolved with updates to the Command Hooks plugin in the latest prerelease version of Ceedling.