Skip to content
Browse files

API: Moving autotest_lib to autotest

This patch brings API changes to test writers.

Move autotest_api to a shorter and cleaner
autotest. So all references to

autotest_lib.[lib]

Become

autotest.[lib]

The conversion was made mostly automated by
script.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
  • Loading branch information...
1 parent 4ece855 commit 7e83868beb74bfca20290e26c35f10c2deb9fec1 @lmr lmr committed Apr 13, 2012
Showing with 574 additions and 574 deletions.
  1. +1 −1 CODING_STYLE
  2. +1 −1 cli/acl.py
  3. +1 −1 cli/acl_unittest.py
  4. +1 −1 cli/action_common.py
  5. +2 −2 cli/action_common_unittest.py
  6. +2 −2 cli/atest.py
  7. +1 −1 cli/atest_unittest.py
  8. +1 −1 cli/atomicgroup.py
  9. +1 −1 cli/atomicgroup_unittest.py
  10. +1 −1 cli/autotest-rpc-change-protection-level
  11. +1 −1 cli/autotest-rpc-client
  12. +2 −2 cli/autotest-rpc-compose-query
  13. +1 −1 cli/autotest-rpc-migrate-host
  14. +1 −1 cli/autotest-rpc-query-keyvals
  15. +2 −2 cli/autotest-rpc-query-results
  16. +5 −5 cli/cli_mock.py
  17. +1 −1 cli/common.py
  18. +1 −1 cli/contrib/common.py
  19. +2 −2 cli/contrib/why_isnt_my_job_running.py
  20. +2 −2 cli/host.py
  21. +1 −1 cli/host_unittest.py
  22. +1 −1 cli/job.py
  23. +2 −2 cli/job_unittest.py
  24. +1 −1 cli/label.py
  25. +1 −1 cli/label_unittest.py
  26. +3 −3 cli/rpc.py
  27. +4 −4 cli/rpc_unittest.py
  28. +1 −1 cli/setup.py
  29. +1 −1 cli/site_readme.py
  30. +1 −1 cli/test.py
  31. +1 −1 cli/test_unittest.py
  32. +1 −1 cli/threads_unittest.py
  33. +3 −3 cli/topic_common.py
  34. +2 −2 cli/topic_common_unittest.py
  35. +1 −1 cli/user.py
  36. +1 −1 cli/user_unittest.py
  37. +1 −1 client/autotest
  38. +1 −1 client/autotest-local
  39. +1 −1 client/autotest_client
  40. +4 −4 client/autotest_local.py
  41. +2 −2 client/base_sysinfo.py
  42. +1 −1 client/base_utils.py
  43. +2 −2 client/boottool.py
  44. +1 −1 client/client_logging_config.py
  45. +2 −2 client/cmdparser.py
  46. +1 −1 client/common.py
  47. +1 −1 client/common_lib/autotemp_unittest.py
  48. +3 −3 client/common_lib/barrier.py
  49. +2 −2 client/common_lib/barrier_unittest.py
  50. +1 −1 client/common_lib/base_barrier.py
  51. +2 −2 client/common_lib/base_barrier_unittest.py
  52. +2 −2 client/common_lib/base_job.py
  53. +2 −2 client/common_lib/base_job_unittest.py
  54. +4 −4 client/common_lib/base_packages.py
  55. +5 −5 client/common_lib/base_syncdata.py
  56. +3 −3 client/common_lib/base_syncdata_unittest.py
  57. +2 −2 client/common_lib/base_utils.py
  58. +2 −2 client/common_lib/base_utils_unittest.py
  59. +1 −1 client/common_lib/boottool.py
  60. +2 −2 client/common_lib/boottool_unittest.py
  61. +1 −1 client/common_lib/common.py
  62. +1 −1 client/common_lib/control_data_unittest.py
  63. +1 −1 client/common_lib/git.py
  64. +1 −1 client/common_lib/global_config.py
  65. +2 −2 client/common_lib/global_config_unittest.py
  66. +1 −1 client/common_lib/host_protections.py
  67. +1 −1 client/common_lib/host_queue_entry_states.py
  68. +2 −2 client/common_lib/hosts/__init__.py
  69. +3 −3 client/common_lib/hosts/base_classes.py
  70. +3 −3 client/common_lib/hosts/base_classes_unittest.py
  71. +1 −1 client/common_lib/hosts/common.py
  72. +1 −1 client/common_lib/iso9660.py
  73. +1 −1 client/common_lib/logging_config.py
  74. +1 −1 client/common_lib/logging_manager_test.py
  75. +2 −2 client/common_lib/packages.py
  76. +1 −1 client/common_lib/profiler_manager.py
  77. +1 −1 client/common_lib/profiler_manager_unittest.py
  78. +3 −3 client/common_lib/software_manager.py
  79. +6 −6 client/common_lib/syncdata.py
  80. +2 −2 client/common_lib/test.py
  81. +2 −2 client/common_lib/test_unittest.py
  82. +2 −2 client/common_lib/utils.py
  83. +2 −2 client/cpuset.py
  84. +1 −1 client/deps/boottool/boottool.py
  85. +1 −1 client/deps/dejagnu/dejagnu.py
  86. +1 −1 client/deps/grubby/grubby.py
  87. +1 −1 client/deps/libaio/libaio.py
  88. +1 −1 client/deps/libcap/libcap.py
  89. +1 −1 client/deps/libnet/libnet.py
  90. +1 −1 client/deps/mysql/mysql.py
  91. +1 −1 client/deps/pgpool/pgpool.py
  92. +1 −1 client/deps/pgsql/pgsql.py
  93. +1 −1 client/deps/systemtap/systemtap.py
  94. +2 −2 client/fsdev_disks.py
  95. +1 −1 client/fsdev_disks_unittest.py
  96. +2 −2 client/fsdev_mgr.py
  97. +1 −1 client/fsinfo.py
  98. +2 −2 client/fsinfo_unittest.py
  99. +1 −1 client/harness.py
  100. +1 −1 client/harness_ABAT.py
  101. +3 −3 client/harness_autoserv.py
  102. +2 −2 client/harness_standalone.py
  103. +2 −2 client/harness_unittest.py
  104. +13 −13 client/job.py
  105. +7 −7 client/job_unittest.py
  106. +4 −4 client/kernel.py
  107. +2 −2 client/kernel_config.py
  108. +3 −3 client/kernel_unittest.py
  109. +1 −1 client/kernel_versions_unittest.py
  110. +1 −1 client/kernelexpand.py
  111. +3 −3 client/kernelexpand_unittest.py
  112. +2 −2 client/kvm_control.py
  113. +2 −2 client/local_host.py
  114. +3 −3 client/local_host_unittest.py
  115. +1 −1 client/net/common.py
  116. +4 −4 client/net/net_tc.py
  117. +4 −4 client/net/net_tc_unittest.py
  118. +6 −6 client/net/net_utils.py
  119. +2 −2 client/net/net_utils_mock.py
  120. +3 −3 client/net/net_utils_unittest.py
  121. +1 −1 client/optparser.py
  122. +2 −2 client/package.py
  123. +2 −2 client/package_unittest.py
  124. +1 −1 client/parallel.py
  125. +3 −3 client/partition.py
  126. +9 −9 client/partition_unittest.py
  127. +2 −2 client/profilers/__init__.py
  128. +2 −2 client/profilers/blktrace/blktrace.py
  129. +1 −1 client/profilers/catprofile/catprofile.py
  130. +2 −2 client/profilers/cmdprofile/cmdprofile.py
  131. +1 −1 client/profilers/cpistat/cpistat.py
  132. +2 −2 client/profilers/ftrace/ftrace.py
  133. +2 −2 client/profilers/iostat/iostat.py
  134. +1 −1 client/profilers/kvm_modload/kvm_modload.py
  135. +2 −2 client/profilers/kvm_stat/kvm_stat.py
  136. +1 −1 client/profilers/lockmeter/lockmeter.py
  137. +2 −2 client/profilers/lttng/lttng.py
  138. +1 −1 client/profilers/mpstat/mpstat.py
  139. +2 −2 client/profilers/oprofile/oprofile.py
  140. +1 −1 client/profilers/perf/perf.py
  141. +1 −1 client/profilers/powertop/powertop.py
  142. +2 −2 client/profilers/readprofile/readprofile.py
  143. +1 −1 client/profilers/sar/sar.py
  144. +1 −1 client/profilers/vmstat/vmstat.py
  145. +1 −1 client/self-test/extract_tarball_to_dir
  146. +1 −1 client/setup.py
  147. +6 −6 client/setup_job.py
  148. +6 −6 client/setup_job_unittest.py
  149. +3 −3 client/setup_modules.py
  150. +2 −2 client/setup_modules_unittest.py
  151. +3 −3 client/sysinfo.py
  152. +3 −3 client/test.py
  153. +1 −1 client/test_config.py
  154. +2 −2 client/tests/aborttest/aborttest.py
  155. +1 −1 client/tests/aio_dio_bugs/aio_dio_bugs.py
  156. +1 −1 client/tests/aiostress/aiostress.py
  157. +1 −1 client/tests/asynctest/asynctest.py
  158. +2 −2 client/tests/barriertest/barriertest.py
  159. +1 −1 client/tests/bash_shared_mapping/bash_shared_mapping.py
  160. +1 −1 client/tests/bonnie/bonnie.py
  161. +2 −2 client/tests/btreplay/btreplay.py
  162. +2 −2 client/tests/cgroup/cgroup.py
  163. +2 −2 client/tests/cgroup/cgroup_common.py
  164. +1 −1 client/tests/compilebench/compilebench.py
  165. +2 −2 client/tests/connectathon/connectathon.py
  166. +2 −2 client/tests/cpu_hotplug/cpu_hotplug.py
  167. +3 −3 client/tests/cpuflags/cpuflags.py
  168. +2 −2 client/tests/ctcs/ctcs.py
  169. +2 −2 client/tests/cyclictest/cyclictest.py
  170. +3 −3 client/tests/dacapo/dacapo.py
  171. +1 −1 client/tests/dbench/dbench.py
  172. +1 −1 client/tests/dbt2/dbt2.py
  173. +2 −2 client/tests/disktest/disktest.py
  174. +2 −2 client/tests/dma_memtest/dma_memtest.py
  175. +2 −2 client/tests/ebizzy/ebizzy.py
  176. +1 −1 client/tests/error_cleanup/error_cleanup.py
  177. +1 −1 client/tests/error_initialize/error_initialize.py
  178. +1 −1 client/tests/error_setup/error_setup.py
  179. +2 −2 client/tests/error_test_bug/error_test_bug.py
  180. +2 −2 client/tests/error_test_error/error_test_error.py
  181. +2 −2 client/tests/error_test_fail/error_test_fail.py
  182. +2 −2 client/tests/error_test_na/error_test_na.py
  183. +2 −2 client/tests/ffsb/ffsb.py
  184. +1 −1 client/tests/fio/fio.py
  185. +1 −1 client/tests/flail/flail.py
  186. +1 −1 client/tests/fs_mark/fs_mark.py
  187. +1 −1 client/tests/fsfuzzer/fsfuzzer.py
  188. +1 −1 client/tests/fsstress/fsstress.py
  189. +1 −1 client/tests/fsx/fsx.py
  190. +1 −1 client/tests/hackbench/hackbench.py
  191. +2 −2 client/tests/hwclock/hwclock.py
  192. +1 −1 client/tests/interbench/interbench.py
  193. +2 −2 client/tests/iosched_bugs/iosched_bugs.py
  194. +1 −1 client/tests/iozone/common.py
  195. +1 −1 client/tests/iozone/iozone.py
  196. +3 −3 client/tests/iozone/postprocessing.py
  197. +3 −3 client/tests/iperf/iperf.py
  198. +2 −2 client/tests/ipv6connect/ipv6connect.py
  199. +1 −1 client/tests/isic/isic.py
  200. +1 −1 client/tests/kernbench/kernbench.py
  201. +1 −1 client/tests/kernelbuild/kernelbuild.py
  202. +1 −1 client/tests/kvm/common.py
  203. +2 −2 client/tests/kvm/control
  204. +3 −3 client/tests/kvm/control.parallel
  205. +2 −2 client/tests/kvm/control.unittests
  206. +3 −3 client/tests/kvm/get_started.py
  207. +1 −1 client/tests/kvm/kvm.py
  208. +2 −2 client/tests/kvm/multi_host.srv
  209. +2 −2 client/tests/kvm/tests/9p.py
  210. +2 −2 client/tests/kvm/tests/balloon_check.py
  211. +3 −3 client/tests/kvm/tests/cdrom.py
  212. +10 −10 client/tests/kvm/tests/cgroup.py
  213. +2 −2 client/tests/kvm/tests/cpu_hotplug.py
  214. +3 −3 client/tests/kvm/tests/cpuflags.py
  215. +3 −3 client/tests/kvm/tests/enospc.py
  216. +2 −2 client/tests/kvm/tests/floppy.py
  217. +1 −1 client/tests/kvm/tests/getfd.py
  218. +1 −1 client/tests/kvm/tests/hdparm.py
  219. +4 −4 client/tests/kvm/tests/ksm_overcommit.py
  220. +2 −2 client/tests/kvm/tests/migration.py
  221. +1 −1 client/tests/kvm/tests/migration_multi_host.py
  222. +3 −3 client/tests/kvm/tests/migration_with_file_transfer.py
  223. +1 −1 client/tests/kvm/tests/migration_with_reboot.py
  224. +2 −2 client/tests/kvm/tests/multi_disk.py
  225. +3 −3 client/tests/kvm/tests/nic_bonding.py
  226. +2 −2 client/tests/kvm/tests/nic_hotplug.py
  227. +1 −1 client/tests/kvm/tests/nmi_watchdog.py
  228. +2 −2 client/tests/kvm/tests/pci_hotplug.py
  229. +2 −2 client/tests/kvm/tests/physical_resources_check.py
  230. +2 −2 client/tests/kvm/tests/qemu_img.py
  231. +5 −5 client/tests/kvm/tests/qemu_io_blkdebug.py
  232. +3 −3 client/tests/kvm/tests/qemu_iotests.py
  233. +2 −2 client/tests/kvm/tests/qmp_basic.py
  234. +2 −2 client/tests/kvm/tests/qmp_basic_rhel6.py
  235. +3 −3 client/tests/kvm/tests/set_link.py
  236. +2 −2 client/tests/kvm/tests/smbios_table.py
  237. +3 −3 client/tests/kvm/tests/stepmaker.py
  238. +2 −2 client/tests/kvm/tests/steps.py
  239. +1 −1 client/tests/kvm/tests/stop_continue.py
  240. +1 −1 client/tests/kvm/tests/system_reset_bootable.py
  241. +2 −2 client/tests/kvm/tests/timedrift.py
  242. +2 −2 client/tests/kvm/tests/timedrift_with_migration.py
  243. +2 −2 client/tests/kvm/tests/timedrift_with_reboot.py
  244. +2 −2 client/tests/kvm/tests/timedrift_with_stop.py
  245. +2 −2 client/tests/kvm/tests/unittest.py
  246. +2 −2 client/tests/kvm/tests/unittest_kvmctl.py
  247. +1 −1 client/tests/kvm/tests/usb.py
  248. +4 −4 client/tests/kvm/tests/virtio_console.py
  249. +2 −2 client/tests/kvm/tests/vmstop.py
  250. +2 −2 client/tests/libhugetlbfs/libhugetlbfs.py
  251. +1 −1 client/tests/libvirt/common.py
  252. +2 −2 client/tests/libvirt/control
  253. +1 −1 client/tests/libvirt/get_started.py
  254. +1 −1 client/tests/libvirt/libvirt.py
  255. +2 −2 client/tests/libvirt/tests/virsh_capabilities.py
  256. +2 −2 client/tests/libvirt/tests/virsh_hostname.py
  257. +1 −1 client/tests/libvirt/tests/virsh_migrate.py
  258. +2 −2 client/tests/libvirt/tests/virsh_uri.py
  259. +2 −2 client/tests/libvirt/tests/virsh_version.py
  260. +2 −2 client/tests/libvirt_tck/libvirt_tck.py
  261. +2 −2 client/tests/libvirt_test_api/libvirt_test_api.py
  262. +1 −1 client/tests/linus_stress/linus_stress.py
  263. +2 −2 client/tests/lmbench/lmbench.py
  264. +3 −3 client/tests/lsb_dtk/lsb_dtk.py
  265. +1 −1 client/tests/ltp/ltp-diff.py
  266. +2 −2 client/tests/ltp/ltp.py
  267. +2 −2 client/tests/memory_api/memory_api.py
  268. +2 −2 client/tests/monotonic_time/monotonic_time.py
  269. +3 −3 client/tests/netperf2/netperf2.py
  270. +2 −2 client/tests/netpipe/netpipe.py
  271. +2 −2 client/tests/npb/npb.py
  272. +2 −2 client/tests/parallel_dd/parallel_dd.py
  273. +2 −2 client/tests/perfmon/perfmon.py
  274. +1 −1 client/tests/pi_tests/pi_tests.py
  275. +2 −2 client/tests/pktgen/pktgen.py
  276. +1 −1 client/tests/posixtest/posixtest.py
  277. +3 −3 client/tests/profiler_sync/profiler_sync.py
  278. +2 −2 client/tests/profiler_test/profiler_test.py
  279. +2 −2 client/tests/qemu_iotests/qemu_iotests.py
  280. +1 −1 client/tests/reaim/reaim.py
  281. +1 −1 client/tests/real_time_tests/real_time_tests.py
  282. +1 −1 client/tests/rmaptest/rmaptest.py
  283. +2 −2 client/tests/rtc/rtc.py
  284. +1 −1 client/tests/rttester/rttester.py
  285. +1 −1 client/tests/scrashme/scrashme.py
  286. +2 −2 client/tests/selftest/selftest.py
  287. +2 −2 client/tests/signaltest/signaltest.py
  288. +1 −1 client/tests/sleeptest/sleeptest.py
  289. +1 −1 client/tests/sparse/sparse.py
  290. +1 −1 client/tests/spew/spew.py
  291. +1 −1 client/tests/stress/stress.py
  292. +2 −2 client/tests/synctest/synctest.py
  293. +2 −2 client/tests/sysbench/sysbench.py
  294. +2 −2 client/tests/systemtap/systemtap.py
  295. +1 −1 client/tests/tbench/tbench.py
  296. +1 −1 client/tests/tiobench/tiobench.py
  297. +1 −1 client/tests/tracing_microbenchmark/base_tracer.py
  298. +1 −1 client/tests/tracing_microbenchmark/tracers.py
  299. +2 −2 client/tests/tracing_microbenchmark/tracing_microbenchmark.py
  300. +2 −2 client/tests/tsc/tsc.py
Sorry, we could not display the entire diff because too many files (614) changed.
View
2 CODING_STYLE
@@ -87,7 +87,7 @@ import sys, time, urllib, urlparse
try:
import autotest.common
except ImportError:
- import common # Magic autotest_lib module and sys.path setup code.
+ import common # Magic autotest module and sys.path setup code.
import MySQLdb # After common so that we check our site-packages first.
from common_lib import error
View
2 cli/acl.py
@@ -18,7 +18,7 @@
"""
import os, sys
-from autotest_lib.cli import topic_common, action_common
+from autotest.cli import topic_common, action_common
class acl(topic_common.atest):
View
2 cli/acl_unittest.py
@@ -10,7 +10,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import topic_common, action_common, acl, cli_mock
+from autotest.cli import topic_common, action_common, acl, cli_mock
class acl_list_unittest(cli_mock.cli_unittest):
View
2 cli/action_common.py
@@ -41,7 +41,7 @@
"""
import re, socket, types
-from autotest_lib.cli import topic_common
+from autotest.cli import topic_common
#
View
4 cli/action_common_unittest.py
@@ -10,8 +10,8 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock, topic_common, action_common, rpc
-from autotest_lib.frontend.afe.json_rpc import proxy
+from autotest.cli import cli_mock, topic_common, action_common, rpc
+from autotest.frontend.afe.json_rpc import proxy
#
# List action
View
4 cli/atest.py
@@ -22,7 +22,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import topic_common
+from autotest.cli import topic_common
def main():
@@ -65,7 +65,7 @@ def main():
elif not os.path.exists(os.path.join(cli_dir, '%s.py' % topic)):
syntax_obj.invalid_syntax('Invalid topic %s' % topic)
topic_module = common.setup_modules.import_module(topic,
- 'autotest_lib.cli')
+ 'autotest.cli')
# If we have a syntax error now, it should
# refer to the topic class.
View
2 cli/atest_unittest.py
@@ -10,7 +10,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock
+from autotest.cli import cli_mock
class main_unittest(cli_mock.cli_unittest):
View
2 cli/atomicgroup.py
@@ -14,7 +14,7 @@
"""
import os, sys
-from autotest_lib.cli import topic_common, action_common
+from autotest.cli import topic_common, action_common
class atomicgroup(topic_common.atest):
"""
View
2 cli/atomicgroup_unittest.py
@@ -8,7 +8,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock, topic_common, atomicgroup
+from autotest.cli import cli_mock, topic_common, atomicgroup
class atomicgroup_unittest(cli_mock.cli_unittest):
View
2 cli/autotest-rpc-change-protection-level
@@ -7,7 +7,7 @@ try:
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import rpc, host
+from autotest.cli import rpc, host
usage = 'usage: %prog [options] new_protection_level machine1 machine2 ...'
parser = optparse.OptionParser(usage=usage)
View
2 cli/autotest-rpc-client
@@ -5,7 +5,7 @@ try:
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import atest
+from autotest.cli import atest
sys.exit(atest.main())
View
4 cli/autotest-rpc-compose-query
@@ -8,8 +8,8 @@ try:
import autotest.common
except ImportError:
import common
-from autotest_lib.client.common_lib import kernel_versions
-from autotest_lib.tko import display, frontend, db, query_lib
+from autotest.client.common_lib import kernel_versions
+from autotest.tko import display, frontend, db, query_lib
# First do all the options parsing
parser = optparse.OptionParser()
View
2 cli/autotest-rpc-migrate-host
@@ -5,7 +5,7 @@ try:
import autotest.common
except ImportError:
import common
-from autotest_lib.server import frontend
+from autotest.server import frontend
try:
old = frontend.AFE(web_server='http://' + sys.argv[1])
View
2 cli/autotest-rpc-query-keyvals
@@ -5,7 +5,7 @@ try:
import autotest.common
except ImportError:
import common
-from autotest_lib.cli import rpc
+from autotest.cli import rpc
def parse_options():
View
4 cli/autotest-rpc-query-results
@@ -8,8 +8,8 @@ try:
import autotest.common
except ImportError:
import common
-from autotest_lib.cli import rpc
-from autotest_lib.database import database_connection
+from autotest.cli import rpc
+from autotest.database import database_connection
# First do all the options parsing
View
10 cli/cli_mock.py
@@ -9,11 +9,11 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import atest, topic_common, rpc
-from autotest_lib.frontend.afe import rpc_client_lib
-from autotest_lib.frontend.afe.json_rpc import proxy
-from autotest_lib.client.common_lib.test_utils import mock
-from autotest_lib.client.common_lib import autotemp
+from autotest.cli import atest, topic_common, rpc
+from autotest.frontend.afe import rpc_client_lib
+from autotest.frontend.afe.json_rpc import proxy
+from autotest.client.common_lib.test_utils import mock
+from autotest.client.common_lib import autotemp
CLI_USING_PDB = False
CLI_UT_DEBUG = False
View
2 cli/common.py
@@ -11,4 +11,4 @@
import setup_modules
sys.path.pop(0)
-setup_modules.setup(base_path=autotest_dir, root_module_name="autotest_lib")
+setup_modules.setup(base_path=autotest_dir, root_module_name="autotest")
View
2 cli/contrib/common.py
@@ -11,4 +11,4 @@
import setup_modules
sys.path.pop(0)
-setup_modules.setup(base_path=autotest_dir, root_module_name="autotest_lib")
+setup_modules.setup(base_path=autotest_dir, root_module_name="autotest")
View
4 cli/contrib/why_isnt_my_job_running.py
@@ -5,8 +5,8 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import rpc, host
-from autotest_lib.client.common_lib import host_queue_entry_states
+from autotest.cli import rpc, host
+from autotest.client.common_lib import host_queue_entry_states
parser = optparse.OptionParser(
usage='Usage: %prog [options] <job id> [<hostname>]\n\n'
View
4 cli/host.py
@@ -22,8 +22,8 @@
"""
import os, sys, socket
-from autotest_lib.cli import topic_common, action_common
-from autotest_lib.client.common_lib import host_protections
+from autotest.cli import topic_common, action_common
+from autotest.client.common_lib import host_protections
class host(topic_common.atest):
View
2 cli/host_unittest.py
@@ -10,7 +10,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock, host
+from autotest.cli import cli_mock, host
class host_ut(cli_mock.cli_unittest):
View
2 cli/job.py
@@ -17,7 +17,7 @@
"""
import getpass, os, pwd, re, socket, sys
-from autotest_lib.cli import topic_common, action_common
+from autotest.cli import topic_common, action_common
class job(topic_common.atest):
View
4 cli/job_unittest.py
@@ -11,8 +11,8 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock, topic_common, job
-from autotest_lib.client.common_lib.test_utils import mock
+from autotest.cli import cli_mock, topic_common, job
+from autotest.client.common_lib.test_utils import mock
class job_unittest(cli_mock.cli_unittest):
View
2 cli/label.py
@@ -17,7 +17,7 @@
"""
import os, sys
-from autotest_lib.cli import topic_common, action_common
+from autotest.cli import topic_common, action_common
class label(topic_common.atest):
View
2 cli/label_unittest.py
@@ -10,7 +10,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock, topic_common
+from autotest.cli import cli_mock, topic_common
class label_list_unittest(cli_mock.cli_unittest):
View
6 cli/rpc.py
@@ -3,9 +3,9 @@
#
import os
-from autotest_lib.frontend.afe import rpc_client_lib
-from autotest_lib.frontend.afe.json_rpc import proxy
-from autotest_lib.client.common_lib import global_config, utils
+from autotest.frontend.afe import rpc_client_lib
+from autotest.frontend.afe.json_rpc import proxy
+from autotest.client.common_lib import global_config, utils
GLOBAL_CONFIG = global_config.global_config
DEFAULT_SERVER = 'autotest'
View
8 cli/rpc_unittest.py
@@ -9,10 +9,10 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import rpc
-from autotest_lib.client.common_lib import global_config
-from autotest_lib.frontend.afe import rpc_client_lib
-from autotest_lib.frontend.afe.json_rpc import proxy
+from autotest.cli import rpc
+from autotest.client.common_lib import global_config
+from autotest.frontend.afe import rpc_client_lib
+from autotest.frontend.afe.json_rpc import proxy
GLOBAL_CONFIG = global_config.global_config
View
2 cli/setup.py
@@ -6,7 +6,7 @@
except ImportError:
import common
-from autotest_lib.client.common_lib import version
+from autotest.client.common_lib import version
# Mostly needed when called one level up
cli_dir = os.path.dirname(sys.modules[__name__].__file__) or '.'
View
2 cli/site_readme.py
@@ -11,7 +11,7 @@
import inspect, new, sys
-from autotest_lib.cli import topic_common, label
+from autotest.cli import topic_common, label
class site_label(label.label):
View
2 cli/test.py
@@ -17,7 +17,7 @@
import os, sys
-from autotest_lib.cli import topic_common, action_common
+from autotest.cli import topic_common, action_common
class test(topic_common.atest):
View
2 cli/test_unittest.py
@@ -10,7 +10,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock, topic_common, test
+from autotest.cli import cli_mock, topic_common, test
class test_list_unittest(cli_mock.cli_unittest):
View
2 cli/threads_unittest.py
@@ -12,7 +12,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock, threads
+from autotest.cli import cli_mock, threads
class thread_unittest(cli_mock.cli_unittest):
View
6 cli/topic_common.py
@@ -57,9 +57,9 @@ class __init__() before adding its own parser arguments.
import getpass, optparse, os, pwd, re, socket, sys, textwrap, traceback
import socket, string, urllib2
-from autotest_lib.cli import rpc
-from autotest_lib.frontend.afe.json_rpc import proxy
-from autotest_lib.client.common_lib.test_utils import mock
+from autotest.cli import rpc
+from autotest.frontend.afe.json_rpc import proxy
+from autotest.client.common_lib.test_utils import mock
# Maps the AFE keys to printable names.
View
4 cli/topic_common_unittest.py
@@ -10,8 +10,8 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock, topic_common, rpc
-from autotest_lib.frontend.afe.json_rpc import proxy
+from autotest.cli import cli_mock, topic_common, rpc
+from autotest.frontend.afe.json_rpc import proxy
class topic_common_misc_tests(unittest.TestCase):
View
2 cli/user.py
@@ -15,7 +15,7 @@
"""
import os, sys
-from autotest_lib.cli import topic_common, action_common
+from autotest.cli import topic_common, action_common
class user(topic_common.atest):
View
2 cli/user_unittest.py
@@ -10,7 +10,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.cli import cli_mock, user
+from autotest.cli import cli_mock, user
class user_list_unittest(cli_mock.cli_unittest):
View
2 client/autotest
@@ -7,7 +7,7 @@ try:
except ImportError:
import common
-from autotest_lib.client import autotest_local
+from autotest.client import autotest_local
if __name__ == '__main__':
app = autotest_local.AutotestLocalApp()
View
2 client/autotest-local
@@ -7,7 +7,7 @@ try:
except ImportError:
import common
-from autotest_lib.client import autotest_local
+from autotest.client import autotest_local
if __name__ == '__main__':
app = autotest_local.AutotestLocalApp()
View
2 client/autotest_client
@@ -6,7 +6,7 @@ except ImportError:
import sys, os, time, subprocess
-from autotest_lib.client.common_lib import utils
+from autotest.client.common_lib import utils
# We want to set the output (stdout&stderr) of the autotest binary onto our
# stdout channel. We went to get the status stream of autotest back on our
View
8 client/autotest_local.py
@@ -10,9 +10,9 @@
autodir = os.path.dirname(autodirbin)
sys.path.insert(0, autodirbin)
-from autotest_lib.client import job
-from autotest_lib.client.common_lib import global_config
-from autotest_lib.client import cmdparser, optparser
+from autotest.client import job
+from autotest.client.common_lib import global_config
+from autotest.client import cmdparser, optparser
autodirtest = os.path.join(autodir, "tests")
@@ -61,7 +61,7 @@ def main(self):
default=True)
if self.options.client_test_setup:
- from autotest_lib.client import setup_job
+ from autotest.client import setup_job
exit_code = 0
try:
setup_job.setup_tests(self.options)
View
4 client/base_sysinfo.py
@@ -1,7 +1,7 @@
import os, shutil, re, glob, subprocess, logging, gzip
-from autotest_lib.client.common_lib import log, global_config
-from autotest_lib.client import utils, package
+from autotest.client.common_lib import log, global_config
+from autotest.client import utils, package
GLOBAL_CONFIG = global_config.global_config
View
2 client/base_utils.py
@@ -9,7 +9,7 @@
"""
import os, shutil, sys, signal, commands, pickle, glob, statvfs
import math, re, string, fnmatch, logging
-from autotest_lib.client.common_lib import error, utils, magic
+from autotest.client.common_lib import error, utils, magic
def grep(pattern, file):
View
4 client/boottool.py
@@ -1,6 +1,6 @@
import os
-from autotest_lib.client.common_lib import utils, error
-from autotest_lib.client.common_lib import boottool as common_boottool
+from autotest.client.common_lib import utils, error
+from autotest.client.common_lib import boottool as common_boottool
class boottool(common_boottool.boottool):
def __init__(self, boottool_exec=None):
View
2 client/client_logging_config.py
@@ -3,7 +3,7 @@
except ImportError:
import common
import logging, os
-from autotest_lib.client.common_lib import logging_config, global_config
+from autotest.client.common_lib import logging_config, global_config
class ClientLoggingConfig(logging_config.LoggingConfig):
def add_debug_file_handlers(self, log_dir, log_name=None):
View
4 client/cmdparser.py
@@ -5,8 +5,8 @@
"""
import os, re, sys
-from autotest_lib.client import os_dep
-from autotest_lib.client.common_lib import global_config
+from autotest.client import os_dep
+from autotest.client.common_lib import global_config
GLOBAL_CONFIG = global_config.global_config
View
2 client/common.py
@@ -9,4 +9,4 @@
sys.path.pop(0)
setup_modules.setup(base_path=client_dir,
- root_module_name="autotest_lib.client")
+ root_module_name="autotest.client")
View
2 client/common_lib/autotemp_unittest.py
@@ -5,7 +5,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import autotemp
+from autotest.client.common_lib import autotemp
class tempfile_test(unittest.TestCase):
View
6 client/common_lib/barrier.py
@@ -1,7 +1,7 @@
-from autotest_lib.client.common_lib.base_barrier import listen_server, barrier
-from autotest_lib.client.common_lib import utils
+from autotest.client.common_lib.base_barrier import listen_server, barrier
+from autotest.client.common_lib import utils
-_SITE_MODULE_NAME = 'autotest_lib.client.common_lib.site_barrier'
+_SITE_MODULE_NAME = 'autotest.client.common_lib.site_barrier'
listen_server = utils.import_site_symbol(
__file__, _SITE_MODULE_NAME, 'listen_server', listen_server)
barrier = utils.import_site_symbol(
View
4 client/common_lib/barrier_unittest.py
@@ -8,9 +8,9 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import error, base_barrier
+from autotest.client.common_lib import error, base_barrier
barrier = base_barrier
-from autotest_lib.client.common_lib.test_utils import mock
+from autotest.client.common_lib.test_utils import mock
class listen_server_test(unittest.TestCase):
View
2 client/common_lib/base_barrier.py
@@ -1,6 +1,6 @@
import sys, socket, errno, logging
from time import time, sleep
-from autotest_lib.client.common_lib import error
+from autotest.client.common_lib import error
# default barrier port
_DEFAULT_PORT = 11922
View
4 client/common_lib/base_barrier_unittest.py
@@ -8,8 +8,8 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import error, barrier, base_barrier
-from autotest_lib.client.common_lib.test_utils import mock
+from autotest.client.common_lib import error, barrier, base_barrier
+from autotest.client.common_lib.test_utils import mock
class listen_server_test(unittest.TestCase):
View
4 client/common_lib/base_job.py
@@ -1,7 +1,7 @@
import os, copy, logging, errno, fcntl, time, re, weakref, traceback
import tarfile
import cPickle as pickle
-from autotest_lib.client.common_lib import autotemp, error, log, global_config
+from autotest.client.common_lib import autotemp, error, log, global_config
GLOBAL_CONFIG = global_config.global_config
@@ -432,7 +432,7 @@ def __init__(self, status_code, subdir, operation, message, fields,
"""Construct a status.log entry.
@param status_code: A message status code. Must match the codes
- accepted by autotest_lib.common_lib.log.is_valid_status.
+ accepted by autotest.common_lib.log.is_valid_status.
@param subdir: A valid job subdirectory, or None.
@param operation: Description of the operation, or None.
@param message: A printable string describing event to be recorded.
View
4 client/common_lib/base_job_unittest.py
@@ -6,8 +6,8 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import base_job, error
-from autotest_lib.client.common_lib.test_utils import unittest
+from autotest.client.common_lib import base_job, error
+from autotest.client.common_lib.test_utils import unittest
class stub_job_directory(object):
View
8 client/common_lib/base_packages.py
@@ -6,8 +6,8 @@
"""
import fcntl, logging, os, re, shutil
-from autotest_lib.client import os_dep
-from autotest_lib.client.common_lib import error, utils, global_config
+from autotest.client import os_dep
+from autotest.client.common_lib import error, utils, global_config
# the name of the checksum file that stores the packages' checksums
@@ -309,7 +309,7 @@ def upkeep(self, custom_repos=None):
'''
Clean up custom upload/download areas
'''
- from autotest_lib.server import subcommand
+ from autotest.server import subcommand
if not custom_repos:
# Not all package types necessarily require or allow custom repos
try:
@@ -471,7 +471,7 @@ def fetch_pkg(self, pkg_name, dest_path, repo_url=None, use_checksum=False):
def upload_pkg(self, pkg_path, upload_path=None, update_checksum=False,
timeout=300):
- from autotest_lib.server import subcommand
+ from autotest.server import subcommand
if upload_path:
upload_path_list = [upload_path]
self.upkeep(upload_path_list)
View
10 client/common_lib/base_syncdata.py
@@ -1,9 +1,9 @@
import pickle, time, socket, errno, threading, logging, signal
-from autotest_lib.client.common_lib import error
-from autotest_lib.client.common_lib import barrier
-from autotest_lib.client.common_lib import utils
-from autotest_lib.client.common_lib import autotemp
-from autotest_lib.client import parallel
+from autotest.client.common_lib import error
+from autotest.client.common_lib import barrier
+from autotest.client.common_lib import utils
+from autotest.client.common_lib import autotemp
+from autotest.client import parallel
_DEFAULT_PORT = 13234
_DEFAULT_TIMEOUT = 10
View
6 client/common_lib/base_syncdata_unittest.py
@@ -7,9 +7,9 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib.test_utils import mock, unittest
-from autotest_lib.client.common_lib import error, base_syncdata, barrier
-from autotest_lib.client.common_lib import utils
+from autotest.client.common_lib.test_utils import mock, unittest
+from autotest.client.common_lib import error, base_syncdata, barrier
+from autotest.client.common_lib import utils
syncdata = base_syncdata
View
4 client/common_lib/base_utils.py
@@ -9,8 +9,8 @@
import hashlib
except ImportError:
import md5, sha
-from autotest_lib.client.common_lib import error, logging_manager, global_config
-from autotest_lib.client.common_lib import progressbar
+from autotest.client.common_lib import error, logging_manager, global_config
+from autotest.client.common_lib import progressbar
GLOBAL_CONFIG = global_config.global_config
View
4 client/common_lib/base_utils_unittest.py
@@ -6,8 +6,8 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import base_utils, autotemp
-from autotest_lib.client.common_lib.test_utils import mock
+from autotest.client.common_lib import base_utils, autotemp
+from autotest.client.common_lib.test_utils import mock
class test_read_one_line(unittest.TestCase):
View
2 client/common_lib/boottool.py
@@ -14,7 +14,7 @@
'''
import os, sys, imp
-from autotest_lib.client.common_lib import error
+from autotest.client.common_lib import error
#
# This performs some import magic, to import the boottool cli as a module
try:
View
4 client/common_lib/boottool_unittest.py
@@ -6,8 +6,8 @@
except ImportError:
import common
-from autotest_lib.client.common_lib.test_utils import mock
-from autotest_lib.client.common_lib import boottool
+from autotest.client.common_lib.test_utils import mock
+from autotest.client.common_lib import boottool
class TestEfiSys(unittest.TestCase):
def setUp(self):
View
2 client/common_lib/common.py
@@ -10,4 +10,4 @@
sys.path.pop(0)
setup_modules.setup(base_path=client_dir,
- root_module_name="autotest_lib.client")
+ root_module_name="autotest.client")
View
2 client/common_lib/control_data_unittest.py
@@ -5,7 +5,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import control_data, autotemp
+from autotest.client.common_lib import control_data, autotemp
ControlData = control_data.ControlData
View
2 client/common_lib/git.py
@@ -5,7 +5,7 @@
import os, logging
import error
-from autotest_lib.client import utils, os_dep
+from autotest.client import utils, os_dep
__all__ = ["GitRepoHelper", "get_repo"]
View
2 client/common_lib/global_config.py
@@ -6,7 +6,7 @@
__author__ = 'raphtee@google.com (Travis Miller)'
import os, sys, ConfigParser, logging
-from autotest_lib.client.common_lib import error
+from autotest.client.common_lib import error
class ConfigError(error.AutotestError):
View
4 client/common_lib/global_config_unittest.py
@@ -5,8 +5,8 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import global_config
-from autotest_lib.client.common_lib import autotemp
+from autotest.client.common_lib import global_config
+from autotest.client.common_lib import autotemp
global_config_ini_contents = """
View
2 client/common_lib/host_protections.py
@@ -1,5 +1,5 @@
import logging
-from autotest_lib.client.common_lib import enum, global_config
+from autotest.client.common_lib import enum, global_config
# Changing this file has consequences that need to be understood.
# Adding a protection level to the enum requires you to append your change to
View
2 client/common_lib/host_queue_entry_states.py
@@ -5,7 +5,7 @@
that frontend.afe.models depends on such as RPC clients.
"""
-from autotest_lib.client.common_lib import enum
+from autotest.client.common_lib import enum
Status = enum.Enum('Queued', 'Starting', 'Verifying', 'Pending', 'Waiting',
'Running', 'Gathering', 'Parsing', 'Archiving', 'Aborted',
View
4 client/common_lib/hosts/__init__.py
@@ -6,9 +6,9 @@
You should 'import hosts' instead of importing every available host module.
"""
-from autotest_lib.client.common_lib import utils
+from autotest.client.common_lib import utils
import base_classes
Host = utils.import_site_class(
- __file__, "autotest_lib.client.common_lib.hosts.site_host", "SiteHost",
+ __file__, "autotest.client.common_lib.hosts.site_host", "SiteHost",
base_classes.Host)
View
6 client/common_lib/hosts/base_classes.py
@@ -17,9 +17,9 @@
import cPickle, cStringIO, logging, os, re, time
-from autotest_lib.client.common_lib import global_config, error, utils
-from autotest_lib.client.common_lib import host_protections
-from autotest_lib.client import partition
+from autotest.client.common_lib import global_config, error, utils
+from autotest.client.common_lib import host_protections
+from autotest.client import partition
class Host(object):
View
6 client/common_lib/hosts/base_classes_unittest.py
@@ -6,9 +6,9 @@
except ImportError:
import common
-from autotest_lib.client.common_lib import error, utils
-from autotest_lib.client.common_lib.test_utils import mock
-from autotest_lib.client.common_lib.hosts import base_classes
+from autotest.client.common_lib import error, utils
+from autotest.client.common_lib.test_utils import mock
+from autotest.client.common_lib.hosts import base_classes
class test_host_class(unittest.TestCase):
View
2 client/common_lib/hosts/common.py
@@ -5,4 +5,4 @@
import setup_modules
sys.path.pop(0)
setup_modules.setup(base_path=client_dir,
- root_module_name="autotest_lib.client")
+ root_module_name="autotest.client")
View
2 client/common_lib/iso9660.py
@@ -12,7 +12,7 @@
import os, logging, tempfile, shutil
import common
-from autotest_lib.client.common_lib import utils
+from autotest.client.common_lib import utils
def has_userland_tool(executable):
View
2 client/common_lib/logging_config.py
@@ -1,5 +1,5 @@
import logging, os, sys, time
-from autotest_lib.client.common_lib import global_config
+from autotest.client.common_lib import global_config
GLOBAL_CONFIG = global_config.global_config
View
2 client/common_lib/logging_manager_test.py
@@ -5,7 +5,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import logging_manager, logging_config
+from autotest.client.common_lib import logging_manager, logging_config
class PipedStringIO(object):
View
4 client/common_lib/packages.py
@@ -1,8 +1,8 @@
-from autotest_lib.client.common_lib import utils, base_packages
+from autotest.client.common_lib import utils, base_packages
SitePackageManager = utils.import_site_class(
- __file__, "autotest_lib.client.common_lib.site_packages",
+ __file__, "autotest.client.common_lib.site_packages",
"SitePackageManager", base_packages.BasePackageManager)
View
2 client/common_lib/profiler_manager.py
@@ -4,7 +4,7 @@
except ImportError:
import common
-from autotest_lib.client.common_lib import error, utils, packages
+from autotest.client.common_lib import error, utils, packages
class ProfilerNotPresentError(error.JobError):
View
2 client/common_lib/profiler_manager_unittest.py
@@ -5,7 +5,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import profiler_manager
+from autotest.client.common_lib import profiler_manager
# simple job stub for using in tests
View
6 client/common_lib/software_manager.py
@@ -24,9 +24,9 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client import os_dep, utils
-from autotest_lib.client.common_lib import error
-from autotest_lib.client.common_lib import logging_config, logging_manager
+from autotest.client import os_dep, utils
+from autotest.client.common_lib import error
+from autotest.client.common_lib import logging_config, logging_manager
def generate_random_string(length):
View
12 client/common_lib/syncdata.py
@@ -1,10 +1,10 @@
-from autotest_lib.client.common_lib.base_syncdata import SyncData
-from autotest_lib.client.common_lib.base_syncdata import SyncListenServer
-from autotest_lib.client.common_lib.base_syncdata import net_send_object
-from autotest_lib.client.common_lib.base_syncdata import net_recv_object
-from autotest_lib.client.common_lib import utils
+from autotest.client.common_lib.base_syncdata import SyncData
+from autotest.client.common_lib.base_syncdata import SyncListenServer
+from autotest.client.common_lib.base_syncdata import net_send_object
+from autotest.client.common_lib.base_syncdata import net_recv_object
+from autotest.client.common_lib import utils
-_SITE_MODULE_NAME = 'autotest_lib.client.common_lib.site_syncdata'
+_SITE_MODULE_NAME = 'autotest.client.common_lib.site_syncdata'
net_send_object = utils.import_site_symbol(
__file__, _SITE_MODULE_NAME, 'net_send_object', net_send_object)
net_recv_object = utils.import_site_symbol(
View
4 client/common_lib/test.py
@@ -18,8 +18,8 @@
import fcntl, getpass, os, re, sys, shutil, tempfile, time, traceback, logging
-from autotest_lib.client.common_lib import error, global_config
-from autotest_lib.client import utils
+from autotest.client.common_lib import error, global_config
+from autotest.client import utils
GLOBAL_CONFIG = global_config.global_config
View
4 client/common_lib/test_unittest.py
@@ -10,8 +10,8 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client.common_lib import error, test
-from autotest_lib.client.common_lib.test_utils import mock
+from autotest.client.common_lib import error, test
+from autotest.client.common_lib.test_utils import mock
class TestTestCase(unittest.TestCase):
class _neutered_base_test(test.base_test):
View
4 client/common_lib/utils.py
@@ -8,6 +8,6 @@
inheritance with, just a collection of static methods.
"""
-from autotest_lib.client.common_lib.base_utils import *
+from autotest.client.common_lib.base_utils import *
if os.path.exists(os.path.join(os.path.dirname(__file__), 'site_utils.py')):
- from autotest_lib.client.common_lib.site_utils import *
+ from autotest.client.common_lib.site_utils import *
View
4 client/cpuset.py
@@ -5,8 +5,8 @@
# for use on kernels not running some site-specific container manager
import os, sys, re, glob, fcntl, logging
-from autotest_lib.client import utils
-from autotest_lib.client.common_lib import error
+from autotest.client import utils
+from autotest.client.common_lib import error
SUPER_ROOT = '' # root of all containers or cgroups
NO_LIMIT = (1 << 63) - 1 # containername/memory.limit_in_bytes if no limit
View
2 client/deps/boottool/boottool.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import os
-from autotest_lib.client import utils
+from autotest.client import utils
# To use this, you have to set PERL5LIB to:
# autodir+'deps/boottool/lib/perl'
View
2 client/deps/dejagnu/dejagnu.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import os
-from autotest_lib.client import utils
+from autotest.client import utils
version = 1
View
2 client/deps/grubby/grubby.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import os
-from autotest_lib.client import utils
+from autotest.client import utils
version = 1
View
2 client/deps/libaio/libaio.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import os
-from autotest_lib.client import utils
+from autotest.client import utils
version = 1
View
2 client/deps/libcap/libcap.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import os
-from autotest_lib.client import utils
+from autotest.client import utils
version = 2
View
2 client/deps/libnet/libnet.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import os
-from autotest_lib.client import utils
+from autotest.client import utils
version = 1
View
2 client/deps/mysql/mysql.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import os
-from autotest_lib.client import utils
+from autotest.client import utils
version = 3
View
2 client/deps/pgpool/pgpool.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import os
-from autotest_lib.client import utils
+from autotest.client import utils
version = 1
View
2 client/deps/pgsql/pgsql.py
@@ -1,7 +1,7 @@
#!/usr/bin/python
import os
-from autotest_lib.client import utils
+from autotest.client import utils
version = 4
View
2 client/deps/systemtap/systemtap.py
@@ -2,7 +2,7 @@
import os
import shutil
-from autotest_lib.client import utils
+from autotest.client import utils
version = 1
View
4 client/fsdev_disks.py
@@ -1,6 +1,6 @@
import sys, os, re, string
-from autotest_lib.client import utils, fsinfo, fsdev_mgr, partition
-from autotest_lib.client.common_lib import error
+from autotest.client import utils, fsinfo, fsdev_mgr, partition
+from autotest.client.common_lib import error
fd_mgr = fsdev_mgr.FsdevManager()
View
2 client/fsdev_disks_unittest.py
@@ -9,7 +9,7 @@
import autotest.common as common
except ImportError:
import common
-from autotest_lib.client import fsdev_disks
+from autotest.client import fsdev_disks
class fsdev_disks_test(unittest.TestCase):
def test_legacy_str_to_test_flags(self):
View
4 client/fsdev_mgr.py
@@ -4,7 +4,7 @@
to any of these methods should inherit this class.
"""
-from autotest_lib.client import utils
+from autotest.client import utils
class BaseFsdevManager(object):
@@ -43,7 +43,7 @@ def use_partition(self, part_name):