Arrange tests in subdirectories.
[virt-what.git] / tests / aws-baremetal-x86 / test.sh
similarity index 93%
rename from tests/test-aws-baremetal-x86.sh
rename to tests/aws-baremetal-x86/test.sh
index d456163..4a1e566 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/aws-baremetal-x86
-
-output="$(./virt-what --test-root=$root 2>&1)"
+output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
 expected="aws"
 
 if [ "$output" != "$expected" ]; then