Skip to content

Trying to re-run test suite fails due to file named uname #98

@omajid

Description

@omajid

When re-running the test suite, the presence of a log file named uname makes .NET fail when trying to run uname command to record the CPU info.

$ dotnet turkey/Turkey.dll -v dotnet-regular-tests/debugging-sos-lldb-via-core/ --timeout 300
Testing everything under /home/omajid/workdir/dotnet-regular-tests/debugging-sos-lldb-via-core/
...
Unhandled exception: System.ComponentModel.Win32Exception (13): An error occurred trying to start process '/home/omajid/workdir/uname' with working directory '/home/omajid/workdir'. Permission denied
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) in /_/src/runtime/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.Unix.cs:line 546
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) in /_/src/runtime/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.Unix.cs:line 456
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) in /_/src/runtime/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.cs:line 1352
   at Turkey.ProcessRunner.Run(String filename, String[] args) in /__w/dotnet-bunny/dotnet-bunny/Turkey/ProcessExtensions.cs:line 33
   at Turkey.TestRunner.LogEnvironment(String logDir) in /__w/dotnet-bunny/dotnet-bunny/Turkey/TestRunner.cs:line 179
   at Turkey.TestRunner.ScanAndRunAsync(List`1 outputs, String logDir, TimeSpan defaultTimeout) in /__w/dotnet-bunny/dotnet-bunny/Turkey/TestRunner.cs:line 74
   at Turkey.Program.Run(String testRoot, Boolean verbose, String logDirectory, String additionalFeed, IEnumerable`1 trait, Int32 timeout) in /__w/dotnet-bunny/dotnet-bunny/Turkey/Program.cs:line 137
   at System.CommandLine.Invocation.CommandHandler.GetExitCodeAsync(Object value, InvocationContext context)
   at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass21_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass14_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass25_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass23_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__22_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass20_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__8_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__7_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<<UseExceptionHandler>b__0>d.MoveNext()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions