@@ -55,7 +55,7 @@ public LinuxInstallerTests(ITestOutputHelper outputHelper)
55
55
_contextDir = Path . Combine ( _tmpDir , Path . GetRandomFileName ( ) ) ;
56
56
Directory . CreateDirectory ( _contextDir ) ;
57
57
58
- _excludeLinuxArch = Config . Architecture == "x64" ? "arm64" : "x64" ;
58
+ _excludeLinuxArch = Config . Architecture == Architecture . X64 ? "arm64" : "x64" ;
59
59
}
60
60
61
61
public void Dispose ( )
@@ -96,7 +96,7 @@ public void DebTest(string repo, string tag)
96
96
private void InitializeContext ( PackageType packageType )
97
97
{
98
98
string packageArchitecture =
99
- Config . Architecture == "x64" ?
99
+ Config . Architecture == Architecture . X64 ?
100
100
"x64" :
101
101
packageType == PackageType . Rpm ?
102
102
"aarch64" :
@@ -117,7 +117,7 @@ private void InitializeContext(PackageType packageType)
117
117
File . Copy ( rpmPackage , Path . Combine ( _contextDir , Path . GetFileName ( rpmPackage ) ) ) ;
118
118
}
119
119
120
- if ( Config . Architecture == "x64" )
120
+ if ( Config . Architecture == Architecture . X64 )
121
121
{
122
122
DownloadFileAsync ( NetStandard21RpmPackage , Path . Combine ( _contextDir , Path . GetFileName ( NetStandard21RpmPackage ) ) ) . Wait ( ) ;
123
123
}
@@ -131,7 +131,7 @@ private void InitializeContext(PackageType packageType)
131
131
File . Copy ( debPackage , Path . Combine ( _contextDir , Path . GetFileName ( debPackage ) ) ) ;
132
132
}
133
133
134
- if ( Config . Architecture == "x64" )
134
+ if ( Config . Architecture == Architecture . X64 )
135
135
{
136
136
DownloadFileAsync ( NetStandard21DebPackage , Path . Combine ( _contextDir , Path . GetFileName ( NetStandard21DebPackage ) ) ) . Wait ( ) ;
137
137
}
@@ -286,7 +286,7 @@ private List<string> GetPackageList(string baseImage, PackageType packageType)
286
286
AddPackage ( packageList , "aspnetcore-runtime-" , packageType ) ;
287
287
AddPackage ( packageList , "aspnetcore-targeting-pack-" , packageType ) ;
288
288
AddPackage ( packageList , "dotnet-apphost-pack-" , packageType ) ;
289
- if ( Config . Architecture == "x64" )
289
+ if ( Config . Architecture == Architecture . X64 )
290
290
{
291
291
// netstandard package exists for x64 only
292
292
AddPackage ( packageList , "netstandard-targeting-pack-" , packageType ) ;
0 commit comments