tests: exit t5.pl if running against ownCloud 6

t5.pl checks the environment variable SERVER_VERSION and if that equals
"owncloud6" it bails out after a check of the sharing ocs api.
This commit is contained in:
Klaas Freitag 2014-10-29 14:24:36 +01:00
parent 825eca078d
commit 1029f9521c

View file

@ -51,6 +51,11 @@ print "Created share with id <$shareId>\n";
assert( $shareId > 0 );
if( $ENV{SERVER_VERSION} eq "owncloud6" ) {
print "This test does not make more sense for ownCloud6, leaving for good!\n\n";
exit;
}
# put a couple of files into the shared directory in the sharer account
glob_put( 'sharing/*', $share_dir, $sharee);
@ -62,7 +67,6 @@ moveRemoteFile( server() . $share_dir, localDir(), 1 );
printInfo("Initial sync, sync stuff down.");
csync();
assertLocalAndRemoteDir( '', 0 );
# Local file to a read/write share should be synced up