maint: remove unnecessary test-before-free
[hivex.git] / python / run-python-tests
index b305db7..e8c8c14 100755 (executable)
@@ -1,6 +1,6 @@
-#!/bin/sh -
+#!/bin/bash -
 # hivex Python bindings
-# Copyright (C) 2009-2010 Red Hat Inc.
+# Copyright (C) 2009-2011 Red Hat Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -20,5 +20,6 @@ set -e
 shopt -s nullglob
 
 for f in t/*.py; do
-  python $f
+  basename "$f"
+  python "$f"
 done