Skip to content

Problem Description : Ruby test was not available on autotest.#100

Open
anupkumk wants to merge 1 commit into
autotest:masterfrom
anupkumk:ruby1
Open

Problem Description : Ruby test was not available on autotest.#100
anupkumk wants to merge 1 commit into
autotest:masterfrom
anupkumk:ruby1

Conversation

@anupkumk

Copy link
Copy Markdown

Fix : Added ruby test suits for autotest.
Signed-off By: Anup Kumar anupkumk@linux.vnet.ibm.com

Fix : Added ruby test suits to autotest.
Signed-off By: Anup Kumar <anupkumk@linux.vnet.ibm.com>
Comment thread linux-tools/ruby/ruby.py
Trigger test run
"""
try:
os.environ["LTPBIN"] = "%s/shared" %(test_path)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

consider using os.path.join()

Comment thread linux-tools/ruby/ruby.py
"""
try:
os.environ["LTPBIN"] = "%s/shared" %(test_path)
ret_val = subprocess.Popen(['./ruby.sh'], cwd="%s/ruby" %(test_path))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here

Comment thread linux-tools/ruby/ruby.py
if ret_val.returncode != 0:
self.nfail += 1

except error.CmdError, e:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please use proper variable name instead of e here and elsewhere

usage:
------
cd /opt/fiv/ltp/testcases/fivextra/ruby
./ruby.sh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please change this to run from autotest path.

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.

3 participants