Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !6546

3.0.0 wip - fixed the issue in which the test pid isn't killed if a test fails

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/huannh/3.0.0-wip into master Jan 11, 2013
  • Overview 0
  • Commits 206
  • Pipelines 0
  • Changes 134

Created by: huannh

Updated: I'm sorry for a careless check of the commits and files changed.

All proposed change is to add: ;true on the line 49 of the file Makefile as follows:

test: jshint js/.js --config js/.jshintrc jshint js/tests/unit/.js --config js/.jshintrc node js/tests/server.js & phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"; true


Tested on MacOSX 10.6 Reproducible process:

  1. Write a test that will fails
  2. Run make test

See the log below at the bold line. The command kill -9 cat js/tests/pid.txt didn't run after the test failed.

Noted: for a shorter log, I only run the test cases in bootstrap-tooltip.

/code/opensource/bootstrap$ make test jshint js/.js --config js/.jshintrc jshint js/tests/unit/.js --config js/.jshintrc node js/tests/server.js & phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"

Starting test suite

✔ All tests passed in 'bootstrap-tooltip' module

Tests completed in 1078 milliseconds 27 tests of 27 passed, 0 failed. kill -9 cat js/tests/pid.txt rm js/tests/pid.txt /code/opensource/bootstrap$ make test jshint js/.js --config js/.jshintrc jshint js/tests/unit/.js --config js/.jshintrc node js/tests/server.js & phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"

Starting test suite

✖ 1 tests failed in 'bootstrap-tooltip' module

Tests completed in 1075 milliseconds **27 tests of 28 passed, 1 failed. make: * [test] Error 1 /code/opensource/bootstrap$ make test jshint js/.js --config js/.jshintrc jshint js/tests/unit/.js --config js/.jshintrc node js/tests/server.js & phantomjs js/tests/phantom.js "http://localhost:3000/js/tests"

events.js:66 throw arguments[1]; // Unhandled 'error' event ^ Error: listen EADDRINUSE at errnoException (net.js:768:11) at Server._listen2 (net.js:908:14) at listen (net.js:935:10) at Server.listen (net.js:984:5) at Object. (/code/opensource/bootstrap/js/tests/server.js:12:24) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.runMain (module.js:492:10)

Starting test suite

✖ 1 tests failed in 'bootstrap-tooltip' module

Tests completed in 1066 milliseconds 27 tests of 28 passed, 1 failed. make: *** [test] Error 1

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/huannh/3.0.0-wip