@@ -1369,8 +1369,8 @@ extension TestCLIBuildBase {
13691369 let baseContext : [ FileSystemEntry ] = [
13701370 . file( " hello.txt " , content: . data( " hello \n " . data ( using: . utf8) !) )
13711371 ]
1372-
13731372 try createContext ( tempDir: baseTempDir, dockerfile: baseDockerfile, context: baseContext)
1373+
13741374 try self . build ( tag: baseImageName, tempDir: baseTempDir)
13751375 #expect( try self . inspectImage ( baseImageName) == baseImageName, " expected to have successfully built \( baseImageName) " )
13761376
@@ -1380,7 +1380,6 @@ extension TestCLIBuildBase {
13801380 COPY --from= \( baseImageName) /hello.txt /copied.txt
13811381 RUN cat /copied.txt
13821382 """
1383-
13841383 try createContext ( tempDir: tempDir, dockerfile: dockerfile)
13851384
13861385 let imageName = " registry.local/copy-from-local: \( UUID ( ) . uuidString) "
@@ -1403,16 +1402,13 @@ extension TestCLIBuildBase {
14031402 COPY --from=builder /hello.txt /copied.txt
14041403 RUN cat /copied.txt
14051404 """
1406-
14071405 let context : [ FileSystemEntry ] = [
14081406 . file( " hello.txt " , content: . data( " hello \n " . data ( using: . utf8) !) )
14091407 ]
1410-
14111408 try createContext ( tempDir: tempDir, dockerfile: dockerfile, context: context)
14121409
14131410 let imageName = " registry.local/copy-from-stage: \( UUID ( ) . uuidString) "
14141411 try self . build ( tag: imageName, tempDir: tempDir)
1415-
14161412 #expect( try self . inspectImage ( imageName) == imageName, " expected to have successfully built \( imageName) " )
14171413 }
14181414 }
0 commit comments