| 1 | From 04b0c8b1274918015c91f609cd63fdda6099ab95 Mon Sep 17 00:00:00 2001
|
| 2 | Patch-Source: https://github.com/PowerShell/PowerShell/issues/17889
|
| 3 | From: Antoine Martin <[email protected]>
|
| 4 | Date: Tue, 26 Jul 2022 20:34:30 -0400
|
| 5 | Subject: [PATCH 1/1] Neutralize PSTests.Parallel.FileSystemProviderTests.TestMode
|
| 6 |
|
| 7 | PSTests.Parallel.FileSystemProviderTests.TestMode prints error:
|
| 8 | [xUnit.net 00:00:06.26] PSTests.Parallel.FileSystemProviderTests.TestMode [FAIL]
|
| 9 | Failed PSTests.Parallel.FileSystemProviderTests.TestMode [5 ms]
|
| 10 | Error Message:
|
| 11 | Assert.Equal() Failure
|
| 12 | ↓ (pos 0)
|
| 13 | Expected: -----
|
| 14 | Actual: l----
|
| 15 | ↑ (pos 0)
|
| 16 | Stack Trace:
|
| 17 | at PSTests.Parallel.FileSystemProviderTests.TestMode() in /home/user/projects/powershell/testing/powershell/src/PowerShell-7.2.5/test/xUnit/csharp/test_FileSystemProvider.cs:line 123
|
| 18 |
|
| 19 | This patch fixes this failed test by pointing the to-be-tested file to
|
| 20 | /bin/busybox rather than /bin/echo, as the latter is a symbolic link
|
| 21 |
|
| 22 | ---
|
| 23 | test/xUnit/csharp/test_FileSystemProvider.cs | 2 +-
|
| 24 | 1 file changed, 1 insertion(+), 1 deletion(-)
|
| 25 |
|
| 26 | diff --git a/test/xUnit/csharp/test_FileSystemProvider.cs b/test/xUnit/csharp/test_FileSystemProvider.cs
|
| 27 | index 85ab0b2ee..160862146 100644
|
| 28 | |
| 29 | |
| 30 | @@ -109,7 +109,7 @@ namespace PSTests.Parallel
|
| 31 | {
|
| 32 | directoryObject = new DirectoryInfo(@"/");
|
| 33 | fileObject = new FileInfo(@"/etc/hosts");
|
| 34 | - executableObject = new FileInfo(@"/bin/echo");
|
| 35 | + executableObject = new FileInfo(@"/bin/busybox");
|
| 36 | }
|
| 37 | else
|
| 38 | {
|
| 39 | --
|
| 40 | 2.36.2
|