[PATCH 16/17] test: Fix test-sap-server import issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sap-client is a helper library and needs to be suffixed with .py for
test-sap-server to be able to import it.

$ ./test-sap-server
Traceback (most recent call last):
  File "./test-sap-server", line 3, in <module>
    from sap import *
ImportError: No module named sap
---
 .gitignore                         |    1 +
 test/{sap-client => sap_client.py} |    0
 test/test-sap-server               |    2 +-
 3 files changed, 2 insertions(+), 1 deletion(-)
 rename test/{sap-client => sap_client.py} (100%)

diff --git a/.gitignore b/.gitignore
index 137d2e5..be64771 100644
--- a/.gitignore
+++ b/.gitignore
@@ -80,6 +80,7 @@ test/btiotest
 test/test-textfile
 test/uuidtest
 test/mpris-player
+test/sap_client.pyc
 compat/dund
 compat/hidd
 compat/pand
diff --git a/test/sap-client b/test/sap_client.py
similarity index 100%
rename from test/sap-client
rename to test/sap_client.py
diff --git a/test/test-sap-server b/test/test-sap-server
index bea6ca9..f5ad1c8 100755
--- a/test/test-sap-server
+++ b/test/test-sap-server
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 
-from sap import *
+from sap_client import *
 import time
 
 def connect_disconnect_by_client(sap):
-- 
on behalf of ST-Ericsson

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux