Skip to content

Conversation

@kangyijie5473
Copy link

@kangyijie5473 kangyijie5473 commented Nov 15, 2017

There are some path errors in
app/modules/profilers/cpu/CPUProfiler.py
app/tests/profilers/cpu/GetCmdMpstat/unitTests.py
app/tests/profilers/cpu/GetProcLoadavg/unitTests.py so that these code not run.
I fix these errors and add app/tests/jsondt.py to support unittest.

Besides, in app/tests/profilers/cpu/GetCmdMpstat/unitTests.py ,the test method 's parameterexpectedMatchType was at a wrong postion(not at last), i changed it too.

Signed-off-by: Jack Kang xiyoulinux.kangyijie@gmail.com

from datetime import datetime

from modules.lepd.LepDClient import LepDClient
from app.modules.lepd.LepDClient import LepDClient
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please leave it as it is, you need to add your "app" directory to your PYTHONPATH environment variable, and you will get it work by importing from "modules...".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants