Skip to content
Sergei Turukin edited this page Mar 12, 2014 · 2 revisions

Python issues

Daemon mode

I tried to run python in daemon mode with different command-line arguments and file contents. Namely i tried to get python execute test_***.py's. No success!

I've tried several solutions:

  • substituting arguments in nvram file:

    python -mtest.regrtest test_*****
    

    At the moment we can't change command-line arguments.

  • Creating file with dynamic contents:

    import unittest
    unittest.main(module='test.test_****')

    Error while importing: No module named test_****

  • Mapping test_***.py to some file inside container and executing it: Errors are different for different files but the problem is with importing No module named test_support

Clone this wiki locally