Index: client/site_tests/factory_Audio/factory_Audio.py |
diff --git a/client/site_tests/factory_Audio/factory_Audio.py b/client/site_tests/factory_Audio/factory_Audio.py |
index afe77dc3277b3cc4ede22e91d4477f398ee5e331..e5689271b8f164f2d82868cddc62ee992ecf7050 100644 |
--- a/client/site_tests/factory_Audio/factory_Audio.py |
+++ b/client/site_tests/factory_Audio/factory_Audio.py |
@@ -172,8 +172,8 @@ class factory_Audio(test.test): |
if path is None: |
raise error.TestFail('ERROR: Must provide an audio sample') |
if not os.path.isabs(path): |
- # Assume rel-path samples are in deps/factory. |
- path = self.job.autodir + '/deps/factory/' + path |
+ # Assume the relative path is based in autotest directory. |
+ path = os.path.join(self.job.autodir, path) |
if not os.path.exists(path): |
raise error.TestFail('ERROR: Unable to find audio sample %s' % path) |
return path |