Skip to content

Fix for avahi_autoipd ,crontab ,pax path issues and import issue. #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions linux-tools/avahi_autoipd/avahi_autoipd.py
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
import logging
import time
import subprocess
from autotest.client import utils
from distutils.spawn import find_executable
Copy link
Contributor

Choose a reason for hiding this comment

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

Please keep autotest imports together as mentioned in previous commits.

from autotest.client import test
from autotest.client.shared import error
3 changes: 2 additions & 1 deletion linux-tools/avahi_autoipd/control
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 3 additions & 1 deletion linux-tools/crontab/control
Original file line number Diff line number Diff line change
@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove additional space here.
job.run_test('crontab', test_path=path, test = tests[i], wait_time = 65, tag = tests[i], log = LOGFILE)

Below places as well

2 changes: 2 additions & 0 deletions linux-tools/crontab/crontab.py
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions linux-tools/pax/control
Original file line number Diff line number Diff line change
@@ -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)
3 changes: 3 additions & 0 deletions linux-tools/pax/pax.py
Original file line number Diff line number Diff line change
@@ -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