Arrange tests in subdirectories.
[virt-what.git] / tests / ppc64-lpar-dedicated / test.sh
similarity index 94%
rename from tests/test-ppc64-lpar-dedicated.sh
rename to tests/ppc64-lpar-dedicated/test.sh
index 0316ea2..c51eafc 100755 (executable)
@@ -15,9 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-root=tests/ppc64-lpar-dedicated
-
-output="$(./virt-what --test-root=$root 2>&1)"
+output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
 expected="ibm_power-lpar_dedicated"
 
 if [ "$output" != "$expected" ]; then