theory / tap-parser-sourcehandler-pgtap

TAP::Parser::SourceHandler::pgTAP
http://search.cpan.org/dist/TAP::Parser::SourceHandler::pgTAP
11 stars 13 forks source link

Not a SCALAR reference at /usr/local/share/perl5/site_perl/TAP/Parser/SourceHandler/pgTAP.pm line 209 #31

Closed xenoterracide closed 3 years ago

xenoterracide commented 4 years ago

I know this description is probably not very useful, I haven't investigated it further yet... maybe it's meaningful to you though, or maybe there's another check that could be added...

  docker run -v $PWD/src/test/resources/pgtap/test/script:/t -e "PGPASSWORD=$PGPASSWORD" \
    --network=host xenoterracide/pg_prove:latest \
    pg_prove -e"TERM=xterm-256color" --host localhost --dbname briggo_production --username postgres --ext .sql --recurse --color /t
  shell: /bin/bash -e {0}
  env:
    PGPASSWORD: DontUseThisPassword
Not a SCALAR reference at /usr/local/share/perl5/site_perl/TAP/Parser/SourceHandler/pgTAP.pm line 209.
##[error]Process completed with exit code 255.
theory commented 3 years ago

It means that it has read the source of your test into memory, but not stored it as a scalar reference. No other value should be passed to it. I can add some code to detect if it's not an expected reference, but would have no idea how it got that way.

theory commented 3 years ago

Actually the docs say what it's allowed to be. Maybe it's finding something weird because you're searching /? Likely to be a lot of crap included that you don't want, like /dev/null.