mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
fix test on linux systems
This commit is contained in:
parent
2561687976
commit
ac756708b0
12
.github/workflows/tests.yaml
vendored
12
.github/workflows/tests.yaml
vendored
@ -45,12 +45,12 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test --no-restore --filter "Category!=FlakeyNetwork"
|
run: dotnet test --no-restore --filter "Category!=FlakeyNetwork"
|
||||||
|
|
||||||
- name: Upload Test Folder on Failure
|
#- name: Upload Test Folder on Failure
|
||||||
if: ${{ failure() }}
|
# if: ${{ failure() }}
|
||||||
uses: actions/upload-artifact@v2
|
# uses: actions/upload-artifact@v2
|
||||||
with:
|
# with:
|
||||||
name: Failed Files
|
# name: Failed Files
|
||||||
path: ./
|
# path: ./
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish Projects
|
name: Publish Projects
|
||||||
|
@ -104,7 +104,9 @@ public class CompilerSanityTests : IAsyncLifetime
|
|||||||
[Fact]
|
[Fact]
|
||||||
public async Task CanExtractBSAs()
|
public async Task CanExtractBSAs()
|
||||||
{
|
{
|
||||||
var bsa = _mod.FullPath.EnumerateFiles(Ext.Bsa).First();
|
var bsa = _mod.FullPath.EnumerateFiles(Ext.Bsa)
|
||||||
|
.OrderBy(d => d.Size())
|
||||||
|
.First();
|
||||||
await _fileExtractor.ExtractAll(bsa, _mod.FullPath, CancellationToken.None);
|
await _fileExtractor.ExtractAll(bsa, _mod.FullPath, CancellationToken.None);
|
||||||
bsa.Delete();
|
bsa.Delete();
|
||||||
|
|
||||||
@ -115,7 +117,9 @@ public class CompilerSanityTests : IAsyncLifetime
|
|||||||
[Fact]
|
[Fact]
|
||||||
public async Task CanRecreateBSAs()
|
public async Task CanRecreateBSAs()
|
||||||
{
|
{
|
||||||
var bsa = _mod.FullPath.EnumerateFiles(Ext.Bsa).First();
|
var bsa = _mod.FullPath.EnumerateFiles(Ext.Bsa)
|
||||||
|
.OrderBy(d => d.Size())
|
||||||
|
.First();
|
||||||
await _fileExtractor.ExtractAll(bsa, _mod.FullPath, CancellationToken.None);
|
await _fileExtractor.ExtractAll(bsa, _mod.FullPath, CancellationToken.None);
|
||||||
|
|
||||||
var reader = await BSADispatch.Open(bsa);
|
var reader = await BSADispatch.Open(bsa);
|
||||||
|
Loading…
Reference in New Issue
Block a user