Giter VIP home page Giter VIP logo

jshu's Issues

Issues with paths including spaces in

Dear Shadowfen,

when testing jshu on my Ubuntu16.1LTS system, I figured some issues:

  1. When path to the script contains spaces, then no test-results are produced. This is due to missing quotes in the "$test_file" variable in jshuFinalize() (here a diff of jshutest.inc):

- echo "\<testsuite failures ... "${total}\">" >${test_file}
- cat $jshu_content_file >>$test_file
- echo "\</testsuite>" >>$test_file
+ echo "\<testsuite failures ... "${total}\">" >"${test_file}"
+ cat $jshu_content_file >>"$test_file"
+ echo "</testsuite>" >>"$test_file"

  1. Also in function jshuRunTests():215, spaces in the path are not interpreted correctly by the command cd ${_jshu_run_curdir}

quotes fixed this issue (see diff):
- cd ${_jshu_run_curdir}
+ cd "${_jshu_run_curdir}"

  1. A Segmentation-Fault is caused when executing the incrbuild_unitTest.sh. This is most likely due to the function parseVersion(). This function is supposed to call function in parseVersion() from sourced script increment_build.sh. However it ends up in an "infinite" recursion. Renaming incrbuild_unitTest.sh::parseVersion() to incrbuild_unitTest.sh::parseVersion_Test() solved the issue. If so, then also update content of jshuTestFunctions="parseVersion getBldFileName_noParam" to jshuTestFunctions="parseVersion_Test getBldFileName_noParam"

regards ireicht

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.