Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • gridtk gridtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • 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
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • software
  • gridtkgridtk
  • Issues
  • #14
Closed
Open
Issue created Dec 22, 2016 by Amir MOHAMMADI@amohammadi

bash giving an error to stdout causes tests to fail

======================================================================
FAIL: test01_local (gridtk.tests.GridTKTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/local/gitlab-runner/builds/6b02994f/2/bob/gridtk/env/lib/python2.7/site-packages/gridtk/tests/__init__.py", line 168, in test01_local
    self.assertEqual(open(err_file).read().split('\n')[0], 'This is a text message to std-err')
AssertionError: '/bin/bash: /local/conda/envs/bob-devel-py27/lib/libtinfo.so.5: no version information available (required by /bin/bash)' != 'This is a text message to std-err'

The script that runs is this:

#!/bin/bash

# We simply write one line to stdout and one line to stderr
echo "This is a text message to std-out"
echo "This is a text message to std-err" >&2

# We exit with -1 (should be 255 as the "result")
exit -1

But looks like there is a problem with bash here.

Assignee
Assign to
Time tracking