Skip to content

t/dash-x.t fails on Fedora in presence of the Lmod package #3

@eserte

Description

@eserte

The test suite fails on my fedora smoker:

#   Failed test 'basic bash -x works'
#   at t/dash-x.t line 14.
# STDERR is:
# + '[' -z '' ']'
# + case "$-" in
# + __lmod_vx=x
# + '[' -n x ']'
# + set +x
# Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for this output (/usr/share/lmod/lmod/init/bash)
# Shell debugging restarted
# + unset __lmod_vx
# + /usr/bin/perl -e 'exit 0'
# 
# not:
# + /usr/bin/perl -e 'exit 0'
# 
# as expected
# Looks like you failed 1 test of 1.
t/dash-x.t ........ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

Reproducible in docker using the following Dockerfile:

FROM fedora:31

RUN yum -y install perl-CPAN
RUN yum -y install perl-Capture-Tiny perl-Path-Tiny
RUN yum -y install perl-Test-Simple perl-IPC-System-Simple perl-Want
RUN yum -y install Lmod
RUN yum -y install perl-Test-Most perl-Test-Output
RUN yum -y install perl-Test-Command perl-Contextual-Return
CMD true

Then run:

docker build -t perl-test . && docker run -it perl-test bash
cpan -t BAREFOOT/PerlX-bash-0.04.tar.gz < /dev/null

After doing yum remove Lmod the test suite passes again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions