Skip to content

[2.3] Test py2lcov/py2lcov.sh seen fail with "genhtml: ERROR: p4annotate.pm requires environment variables P4USER P4PORT P4CLIENT to be set. #381

@hartwork

Description

@hartwork

test.log for download here (I hope it doesn't contain anything sensitive, please notify me if it does 🙏 )

Am I doing something wrong?:

# make -j5 -j1 check 
Creating coverage files (2 tests, 5 source files)
  Source tree ......... done (950 lines, 50 functions, 3428 branches)
  Full coverage ....... done
  Target coverage ..... done
  Partial coverage .... done
  Zero coverage ....... done
Starting tests
genhtml/full.sh ................... [pass] (time 2.3s, mem 48.7MB)
genhtml/zero.sh ................... [pass] (time 2.3s, mem 48.5MB)
genhtml/demangle.sh ............... [pass] (time 5.4s, mem 40.8MB)
genhtml/relative/relative.sh ...... [pass] (time 1.1s, mem 41.1MB)
genhtml/lambda/lambda.sh .......... [pass] (time 9.3s, mem 122.8MB)
lcov/add/zero.sh .................. [pass] (time 1.6s, mem 39.4MB)
lcov/add/zero2.sh ................. [pass] (time 3.7s, mem 44.5MB)
lcov/add/full.sh .................. [pass] (time 2.6s, mem 39.4MB)
lcov/add/full2.sh ................. [pass] (time 3.4s, mem 44.7MB)
lcov/add/prune.sh ................. [pass] (time 3.8s, mem 35.8MB)
lcov/add/track.sh ................. [pass] (time 1.5s, mem 35.1MB)
lcov/misc/help.sh ................. [pass] (time 1.2s, mem 34.5MB)
lcov/misc/version.sh .............. [pass] (time 1.4s, mem 34.4MB)
lcov/summary/zero.sh .............. [pass] (time 1.8s, mem 39.3MB)
lcov/summary/full.sh .............. [pass] (time 1.7s, mem 39.4MB)
lcov/demangle/demangle.sh ......... [pass] (time 13.7s, mem 58.9MB)
lcov/exception/exception.sh ....... [pass] (time 15.3s, mem 47.9MB)
lcov/gcov-tool/path.sh ............ [pass] (time 26.7s, mem 35.7MB)
lcov/branch/branch.sh ............. [pass] (time 7.6s, mem 58.7MB)
lcov/merge/merge.sh ............... [pass] (time 11.8s, mem 34.9MB)
lcov/format/format.sh ............. [pass] (time 7.1s, mem 34.8MB)
lcov/errs/errs.sh ................. [pass] (time 30.1s, mem 35.0MB)
lcov/multiple/multiple.sh ......... [pass] (time 5.2s, mem 35.9MB)
lcov/follow/follow.sh ............. [pass] (time 6.2s, mem 35.8MB)
lcov/initializer/initializer.sh ... [pass] (time 5.2s, mem 83.2MB)
lcov/lambda/lambda.sh ............. [pass] (time 1.5s, mem 38.0MB)
py2lcov/py2lcov.sh ................ [fail] (time 3.2s, mem 40.6MB)
    Skipping 63 previous lines (see /var/tmp/portage/dev-util/lcov-2.3/work/lcov-2.3/tests//test.log)
    ...
    FNL:1,12,16
    FNA:0,0,main.localfunc.nested1.nested2
    FNA:1,0,main.localfunc.nested1
    FNL:0,13,14
    FNA:0,0,main.localfunc.nested1.nested2
    FNL:3,5,18
    genhtml: ERROR: (package) unable to create callback from module '/var/tmp/portage/dev-util/lcov-2.3/work/lcov-2.3/scripts/p4annotate.pm': genhtml: ERROR: p4annotate.pm requires environment variables P4USER P4PORT P4CLIENT to be set.
        (use "genhtml --ignore-errors package ..." to bypass this error)
    genhtml failed
  EXITCODE ...: 1
make[2]: *** [../common.mak:116: check] Error 1
27 tests executed, 26 passed, 1 failed, 0 skipped (time 177.9s, mem 1228.5MB)
Result log stored in /var/tmp/portage/dev-util/lcov-2.3/work/lcov-2.3/tests/test.log
make[1]: *** [common.mak:116: check] Error 1
make: *** [Makefile:262: check] Error 2

CC #378 #380

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions