-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 461827: Create user specific NuGetScratch on Linux
Create user specific NuGetScratch folder on Linux, also changed naming to append username on Linux platform.
- Loading branch information
Showing
5 changed files
with
79 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
test/NuGet.Core.Tests/NuGet.Common.Test/NuGetEnvironmentTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using NuGet.Common.Migrations; | ||
using NuGet.Test.Utility; | ||
using Xunit; | ||
|
||
namespace NuGet.Common.Test | ||
{ | ||
public class NuGetEnvironmentTests | ||
{ | ||
[PlatformFact(Platform.Linux)] | ||
public void GetFolderPath_Temp_Success() | ||
{ | ||
var nuGetTempDirectory = NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp); | ||
Assert.Equal("700", Migration1.GetPermissions(nuGetTempDirectory).ToString()); | ||
} | ||
} | ||
} |