This repository was archived by the owner on Aug 4, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Org.Apache.REEF.IO/FileSystem Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ namespace Org.Apache.REEF.IO.Tests
3636 /// </summary>
3737 public sealed class TestAzureBlockBlobFileSystemE2E : IDisposable
3838 {
39- private const string SkipMessage = "Fill in credentials before running test" ; // Use null to run tests
39+ // Uncomment SkipMessage = null to run tests
40+ private const string SkipMessage = "Fill in credentials before running test" ;
41+ // private const string SkipMessage = null;
4042 private const string HelloFile = "hello" ;
4143 private IFileSystem _fileSystem ;
4244 private CloudBlobClient _client ;
Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ public BlobResultSegment ListBlobsSegmented(
8686 continuationToken ,
8787 blobRequestOptions ,
8888 operationContext ) ;
89- task . Wait ( ) ;
9089 return task . Result ;
9190 }
9291
Original file line number Diff line number Diff line change 1717
1818using System ;
1919using System . Collections . Generic ;
20- using System . Globalization ;
2120using System . IO ;
2221using System . Linq ;
2322using System . Text . RegularExpressions ;
@@ -156,11 +155,7 @@ public bool IsDirectory(Uri uri)
156155 {
157156 // TODO[JIRA REEF - 2039]: HadoopFileSystem .IsDirectory() check needs to work on linux machines.
158157 var stdOut = _commandRunner . Run ( "dfs -test -d " + uri + "& call echo %^errorlevel%" ) . StdOut ;
159- if ( stdOut . Any ( ) )
160- {
161- return "0" . Equals ( stdOut . First ( ) ) ;
162- }
163- return false ;
158+ return stdOut . Any ( ) && stdOut . First ( ) == "0" ;
164159 }
165160
166161 public void DeleteDirectory ( Uri directoryUri )
You can’t perform that action at this time.
0 commit comments