diff --git a/linux-tools/avahi_autoipd/avahi_autoipd.py b/linux-tools/avahi_autoipd/avahi_autoipd.py index e61c6ae80..c787f8b98 100644 --- a/linux-tools/avahi_autoipd/avahi_autoipd.py +++ b/linux-tools/avahi_autoipd/avahi_autoipd.py @@ -4,6 +4,7 @@ import logging import time import subprocess +from autotest.client import utils from distutils.spawn import find_executable from autotest.client import test from autotest.client.shared import error diff --git a/linux-tools/avahi_autoipd/control b/linux-tools/avahi_autoipd/control index d828627de..53bee05de 100644 --- a/linux-tools/avahi_autoipd/control +++ b/linux-tools/avahi_autoipd/control @@ -7,5 +7,6 @@ TIME = 'SHORT' DOC = ''' Test avahi-autoipd package ''' +path = '' -job.run_test('linux-tools/avahi_autoipd') +job.run_test('avahi_autoipd',test_path=path) diff --git a/linux-tools/crontab/control b/linux-tools/crontab/control index b97956c26..639915940 100644 --- a/linux-tools/crontab/control +++ b/linux-tools/crontab/control @@ -15,8 +15,10 @@ Args: ''' import time +path = '' + LOGFILE = '/tmp/autotest_cron-%s' % time.strftime('%Y-%m-%d-%H.%M.%S') tests = ['normal_cron', 'deny_cron', 'allow_cron'] for i in range(0,3): - job.run_test('linux-tools/crontab', test = tests[i], wait_time = 65, tag = tests[i], log = LOGFILE) + job.run_test('crontab',test_path=path , test = tests[i], wait_time = 65, tag = tests[i], log = LOGFILE) diff --git a/linux-tools/crontab/crontab.py b/linux-tools/crontab/crontab.py index 32f4f7dbc..77e206726 100644 --- a/linux-tools/crontab/crontab.py +++ b/linux-tools/crontab/crontab.py @@ -1,8 +1,10 @@ #!/bin/python import os +import shutil import logging from time import sleep +from autotest.client import utils from autotest.client import test from autotest.client.shared import error diff --git a/linux-tools/pax/control b/linux-tools/pax/control index 78ce2bc13..752e0b6dc 100644 --- a/linux-tools/pax/control +++ b/linux-tools/pax/control @@ -14,9 +14,9 @@ Creates and extracts archives using pax under /tmp/ Args:ARCHIVE:Absolute path to the Archive ''' - +path = '' ARCHIVE = '/tmp/archive-%s' % time.strftime('%Y-%m-%d-%H.%M.%S') tests = ['create', 'list', 'extract', 'copy'] for i in tests: - job.run_test('linux-tools/pax', test = i, tag = i, archive = ARCHIVE) + job.run_test('pax',test_path=path , test = i, tag = i, archive = ARCHIVE) diff --git a/linux-tools/pax/pax.py b/linux-tools/pax/pax.py index 1d779d78c..f87fac350 100644 --- a/linux-tools/pax/pax.py +++ b/linux-tools/pax/pax.py @@ -1,7 +1,10 @@ #!/bin/python import os +import shutil import logging +from autotest.client.shared import software_manager +from autotest.client import utils from autotest.client import test from autotest.client.shared import error