@@ -20,15 +20,15 @@ import (
2020func addPackage (ts * testscript.TestScript , neg bool , args []string ) {
2121 clearStdStreams (ts )
2222
23- pkgRoot := ts .Getenv ("PKG_ROOT " )
23+ pkgRoot := ts .Getenv ("PACKAGE_ROOT " )
2424 if pkgRoot == "" {
25- ts .Fatalf ("PKG_ROOT is not set" )
25+ ts .Fatalf ("PACKAGE_ROOT is not set" )
2626 }
2727 root , err := os .OpenRoot (pkgRoot )
2828 ts .Check (err )
29- pkg := ts .Getenv ("PKG " )
29+ pkg := ts .Getenv ("PACKAGE_NAME " )
3030 if pkg == "" {
31- ts .Fatalf ("PKG is not set" )
31+ ts .Fatalf ("PACKAGE_NAME is not set" )
3232 }
3333
3434 stacks , ok := ts .Value (runningStackTag {}).(map [string ]* runningStack )
@@ -72,15 +72,15 @@ func addPackage(ts *testscript.TestScript, neg bool, args []string) {
7272func removePackage (ts * testscript.TestScript , neg bool , args []string ) {
7373 clearStdStreams (ts )
7474
75- pkgRoot := ts .Getenv ("PKG_ROOT " )
75+ pkgRoot := ts .Getenv ("PACKAGE_ROOT " )
7676 if pkgRoot == "" {
77- ts .Fatalf ("PKG_ROOT is not set" )
77+ ts .Fatalf ("PACKAGE_ROOT is not set" )
7878 }
7979 root , err := os .OpenRoot (pkgRoot )
8080 ts .Check (err )
81- pkg := ts .Getenv ("PKG " )
81+ pkg := ts .Getenv ("PACKAGE_NAME " )
8282 if pkg == "" {
83- ts .Fatalf ("PKG is not set" )
83+ ts .Fatalf ("PACKAGE_NAME is not set" )
8484 }
8585
8686 stacks , ok := ts .Value (runningStackTag {}).(map [string ]* runningStack )
@@ -124,9 +124,9 @@ func removePackage(ts *testscript.TestScript, neg bool, args []string) {
124124func upgradePackageLatest (ts * testscript.TestScript , neg bool , args []string ) {
125125 clearStdStreams (ts )
126126
127- pkg := ts .Getenv ("PKG " )
127+ pkg := ts .Getenv ("PACKAGE_NAME " )
128128 if pkg == "" {
129- ts .Fatalf ("PKG is not set" )
129+ ts .Fatalf ("PACKAGE_NAME is not set" )
130130 }
131131
132132 stacks , ok := ts .Value (runningStackTag {}).(map [string ]* runningStack )
@@ -184,9 +184,9 @@ func upgradePackageLatest(ts *testscript.TestScript, neg bool, args []string) {
184184func addPackageZip (ts * testscript.TestScript , neg bool , args []string ) {
185185 clearStdStreams (ts )
186186
187- pkg := ts .Getenv ("PKG " )
187+ pkg := ts .Getenv ("PACKAGE_NAME " )
188188 if pkg == "" {
189- ts .Fatalf ("PKG is not set" )
189+ ts .Fatalf ("PACKAGE_NAME is not set" )
190190 }
191191
192192 stacks , ok := ts .Value (runningStackTag {}).(map [string ]* runningStack )
@@ -228,9 +228,9 @@ func addPackageZip(ts *testscript.TestScript, neg bool, args []string) {
228228func removePackageZip (ts * testscript.TestScript , neg bool , args []string ) {
229229 clearStdStreams (ts )
230230
231- pkg := ts .Getenv ("PKG " )
231+ pkg := ts .Getenv ("PACKAGE_NAME " )
232232 if pkg == "" {
233- ts .Fatalf ("PKG is not set" )
233+ ts .Fatalf ("PACKAGE_NAME is not set" )
234234 }
235235
236236 stacks , ok := ts .Value (runningStackTag {}).(map [string ]* runningStack )
0 commit comments