[tracker/tracker-0.10] functional-tests: Fixed scripts first lines to include #!/usr/bin/python
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] functional-tests: Fixed scripts first lines to include #!/usr/bin/python
- Date: Thu, 10 Mar 2011 12:21:31 +0000 (UTC)
commit 6031d6dfdc270925c1f33fb533cca09e4ca1511b
Author: Tshepang Lekhonkhobe <tshepang gmail com>
Date: Thu Mar 10 12:04:04 2011 +0000
functional-tests: Fixed scripts first lines to include #!/usr/bin/python
This is from 2 patches which MeeGo is using #004 and #005 here:
http://build.meego.com/package/files?package=tracker&project=Trunk
tests/functional-tests/__init__.py | 1 +
tests/functional-tests/common/__init__.py | 1 +
tests/functional-tests/common/utils/__init__.py | 1 +
tests/functional-tests/common/utils/system.py | 1 +
tests/functional-tests/mass-storage-mode.py | 2 +-
tests/functional-tests/unittest2/__init__.py | 2 ++
tests/functional-tests/unittest2/__main__.py | 2 ++
tests/functional-tests/unittest2/case.py | 1 +
tests/functional-tests/unittest2/compatibility.py | 4 +++-
tests/functional-tests/unittest2/loader.py | 2 ++
tests/functional-tests/unittest2/main.py | 2 ++
tests/functional-tests/unittest2/result.py | 2 ++
tests/functional-tests/unittest2/runner.py | 2 ++
tests/functional-tests/unittest2/signals.py | 2 ++
tests/functional-tests/unittest2/suite.py | 2 ++
tests/functional-tests/unittest2/util.py | 2 ++
16 files changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/__init__.py b/tests/functional-tests/__init__.py
index e69de29..013e4b7 100644
--- a/tests/functional-tests/__init__.py
+++ b/tests/functional-tests/__init__.py
@@ -0,0 +1 @@
+#!/usr/bin/python
diff --git a/tests/functional-tests/common/__init__.py b/tests/functional-tests/common/__init__.py
index e69de29..013e4b7 100644
--- a/tests/functional-tests/common/__init__.py
+++ b/tests/functional-tests/common/__init__.py
@@ -0,0 +1 @@
+#!/usr/bin/python
diff --git a/tests/functional-tests/common/utils/__init__.py b/tests/functional-tests/common/utils/__init__.py
index e69de29..013e4b7 100644
--- a/tests/functional-tests/common/utils/__init__.py
+++ b/tests/functional-tests/common/utils/__init__.py
@@ -0,0 +1 @@
+#!/usr/bin/python
diff --git a/tests/functional-tests/common/utils/system.py b/tests/functional-tests/common/utils/system.py
index 5f63a73..8283e0c 100644
--- a/tests/functional-tests/common/utils/system.py
+++ b/tests/functional-tests/common/utils/system.py
@@ -1,3 +1,4 @@
+#!/usr/bin/python
import os
import subprocess
import shutil
diff --git a/tests/functional-tests/mass-storage-mode.py b/tests/functional-tests/mass-storage-mode.py
index dc256c6..fe19a8a 100644
--- a/tests/functional-tests/mass-storage-mode.py
+++ b/tests/functional-tests/mass-storage-mode.py
@@ -1,4 +1,4 @@
-#/bin/env python
+#!/bin/env python
# Copyright (C) 2008, Nokia (urho konttori nokia com)
#
diff --git a/tests/functional-tests/unittest2/__init__.py b/tests/functional-tests/unittest2/__init__.py
index 11eb3be..bf03e43 100644
--- a/tests/functional-tests/unittest2/__init__.py
+++ b/tests/functional-tests/unittest2/__init__.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
"""
unittest2
diff --git a/tests/functional-tests/unittest2/__main__.py b/tests/functional-tests/unittest2/__main__.py
index 009d9f9..6160ddd 100644
--- a/tests/functional-tests/unittest2/__main__.py
+++ b/tests/functional-tests/unittest2/__main__.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
"""Main entry point"""
import sys
diff --git a/tests/functional-tests/unittest2/case.py b/tests/functional-tests/unittest2/case.py
index bb3b46b..058a51f 100644
--- a/tests/functional-tests/unittest2/case.py
+++ b/tests/functional-tests/unittest2/case.py
@@ -1,3 +1,4 @@
+#!/usr/bin/python
"""Test case implementation"""
import sys
diff --git a/tests/functional-tests/unittest2/compatibility.py b/tests/functional-tests/unittest2/compatibility.py
index ea796cc..61a56a3 100644
--- a/tests/functional-tests/unittest2/compatibility.py
+++ b/tests/functional-tests/unittest2/compatibility.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
import os
import sys
@@ -63,4 +65,4 @@ if not hasattr(os, 'relpath'):
return os.path.curdir
return os.path.join(*rel_list)
- os.path.relpath = relpath
\ No newline at end of file
+ os.path.relpath = relpath
diff --git a/tests/functional-tests/unittest2/loader.py b/tests/functional-tests/unittest2/loader.py
index da95305..b69b694 100644
--- a/tests/functional-tests/unittest2/loader.py
+++ b/tests/functional-tests/unittest2/loader.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
"""Loading unittests."""
import os
diff --git a/tests/functional-tests/unittest2/main.py b/tests/functional-tests/unittest2/main.py
index fe5417a..254f0e8 100644
--- a/tests/functional-tests/unittest2/main.py
+++ b/tests/functional-tests/unittest2/main.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
"""Unittest main program"""
import sys
diff --git a/tests/functional-tests/unittest2/result.py b/tests/functional-tests/unittest2/result.py
index 7770e64..725f7b4 100644
--- a/tests/functional-tests/unittest2/result.py
+++ b/tests/functional-tests/unittest2/result.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
"""Test result object"""
import sys
diff --git a/tests/functional-tests/unittest2/runner.py b/tests/functional-tests/unittest2/runner.py
index 15a6f88..8dfce94 100644
--- a/tests/functional-tests/unittest2/runner.py
+++ b/tests/functional-tests/unittest2/runner.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
"""Running tests"""
import sys
diff --git a/tests/functional-tests/unittest2/signals.py b/tests/functional-tests/unittest2/signals.py
index e40328d..bf2dacd 100644
--- a/tests/functional-tests/unittest2/signals.py
+++ b/tests/functional-tests/unittest2/signals.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
import signal
import weakref
diff --git a/tests/functional-tests/unittest2/suite.py b/tests/functional-tests/unittest2/suite.py
index 7a23102..9431f2b 100644
--- a/tests/functional-tests/unittest2/suite.py
+++ b/tests/functional-tests/unittest2/suite.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
"""TestSuite"""
import sys
diff --git a/tests/functional-tests/unittest2/util.py b/tests/functional-tests/unittest2/util.py
index 32f3e3a..a7bffb6 100644
--- a/tests/functional-tests/unittest2/util.py
+++ b/tests/functional-tests/unittest2/util.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python
+
"""Various utility functions."""
def safe_repr(obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]