Skip to content

EOF Input Error during pytest and run-dist.yml #9

@cpstrommen

Description

@cpstrommen

The gh action test-lint.yml errors out during test-sniff.py every time due to a problem with reading the initial host address input in the program. Verbose error as follows:

==================================== ERRORS ====================================
_____________________ ERROR collecting tests/test-sniff.py _____________________
tests/test-sniff.py:3: in <module>
    from src.plcd.ping import portSniff
src/plcd/ping.py:[29](https://github.com/LibreCS/plcd/runs/7617169221?check_suite_focus=true#step:5:30)7: in <module>
    main()
src/plcd/ping.py:210: in main
    netLocationPLC = configure()
src/plcd/ping.py:58: in configure
    hostUsrIn = process_input(addressInMsg)
src/plcd/ping.py:[33](https://github.com/LibreCS/plcd/runs/7617169221?check_suite_focus=true#step:5:34): in process_input
    line = input(msg)
E   EOFError: EOF when reading a line
=============================== warnings summary ===============================
src/plcd/ping.py:201
  /home/runner/work/plcd/plcd/src/plcd/ping.py:201: DeprecationWarning: invalid escape sequence '\/'
    print(bcolors.HEADER + "           __         __\n    ____  / /________/ /\n   / __ \/ / ___/ __  / \n  / /_/ / / /__/ /_/ /  \n / .___/_/\___/\__,_/   \n/_/                     \n" + bcolors.ENDC)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/test-sniff.py - EOFError: EOF when reading a line
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 1 warning, 1 error in 0.11s ==========================

I attempted to implement the solution found in this thread without any success. Will inform on changes and updates

Metadata

Metadata

Assignees

Labels

CI/TestIssues/changes in testing in GitHub ActionsbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions