I tried TestFunctional for <TestSuiteName> since it was listed in pbs_benchpress -L output but it did not work. Functional and functional did not work either. How do I run all the functional tests?
went to the output file ptl_output.txt but was not in my shell output, where as all the INFO level messages appear in both. I had to open the output file to know what was wrong with my command. Is there a way to let all ERROR messages go to both and messages of all other levels go to the output file?
I am also a beginner with PTL test, so when I run the sample testcase - SmokeTest. The error is:
setUpClassError: User pbsuser does not exist!
Therefore, I saw that PTLTestSuite impersonates some users for testing but when run this test, these user accounts do not exist. If so, do I need to create these accounts?
Users are advised to run "pbs_config --make-ug" to create the users and groups that PTL needs.
Run "pbs_config --check-ug" to verify that all the requisite users and groups are present.
Thank you so much, kjakkali!
However, when I run: pbs_config --make-ug, I have an error like this:
ERROR:ptl.utils.pbs_dshutils:err: [‘id: +: no such user’]
Traceback (most recent call last):
File “/home/ctminh/pbs/pbspro/test/fw/build/bin/pbs_config”, line 4, in import(‘pkg_resources’).run_script(‘PbsTestLab==1.0.0’, ‘pbs_config’)
File “/usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg/pkg_resources.py”, line 517, in run_script
return dist
File “/usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg/pkg_resources.py”, line 1436, in run_script
File “/home/ctminh/pbs/pbspro/test/fw/build/lib/python2.7/site-packages/PbsTestLab-1.0.0-py2.7.egg/EGG-INFO/scripts/pbs_config”, line 438, in
rv = make_users_groups()
File “/home/ctminh/pbs/pbspro/test/fw/build/lib/python2.7/site-packages/PbsTestLab-1.0.0-py2.7.egg/EGG-INFO/scripts/pbs_config”, line 226, in make_users_groups
_, _, g_create, u_create = common_users_groups_ops()
File “/home/ctminh/pbs/pbspro/test/fw/build/lib/python2.7/site-packages/PbsTestLab-1.0.0-py2.7.egg/EGG-INFO/scripts/pbs_config”, line 192, in common_users_groups_ops
gm_actual = du.group_memberships(map(lambda g: str(g), PBS_GROUPS))
File “/home/ctminh/pbs/pbspro/test/fw/build/lib/python2.7/site-packages/PbsTestLab-1.0.0-py2.7.egg/ptl/utils/pbs_dshutils.py”, line 621, in group_memberships
for g in info[‘groups’]:
TypeError: ‘NoneType’ object is not iterable
Do you know what happens? Please help me. With this error, maybe I have to create PBS users or groups by myself on Linux System. As you said, I think this command is to make all of users or groups that we need, and don’t need to create anything else.