Replace flag text with const (#1391)
This commit is contained in:
@@ -33,7 +33,8 @@ fission env create --name $env --image $GO_RUNTIME_IMAGE --builder $GO_BUILDER_I
|
||||
|
||||
timeout 90 bash -c "wait_for_builder $env"
|
||||
|
||||
pkgName=$(fission package create --src hello.go --env $env| cut -f2 -d' '| tr -d \')
|
||||
pkgName=$(generate_test_id)
|
||||
fission package create --name $pkgName --src hello.go --env $env
|
||||
|
||||
# wait for build to finish at most 90s
|
||||
timeout 90 bash -c "waitBuild $pkgName"
|
||||
@@ -58,7 +59,8 @@ timeout 60 bash -c "test_fn $fn_nd 'Hello'"
|
||||
# Create zip file without top level directory (module-example)
|
||||
cd module-example && zip -r $tmp_dir/module.zip *
|
||||
|
||||
pkgName=$(fission package create --src $tmp_dir/module.zip --env $env| cut -f2 -d' '| tr -d \')
|
||||
pkgName=$(generate_test_id)
|
||||
fission package create --name $pkgName --src $tmp_dir/module.zip --env $env
|
||||
|
||||
# wait for build to finish at most 90s
|
||||
timeout 90 bash -c "waitBuild $pkgName"
|
||||
|
||||
@@ -37,7 +37,8 @@ fission env create --name $env --image $JVM_RUNTIME_IMAGE --version 2 --keeparch
|
||||
timeout 90 bash -c "wait_for_builder $env"
|
||||
|
||||
log "Creating package from the source archive"
|
||||
pkg_name=`fission package create --sourcearchive $tmp_dir/java-src-pkg.zip --env $env|cut -d' ' -f 2|cut -d"'" -f 2`
|
||||
pkg_name=$(generate_test_id)
|
||||
fission package create --name $pkg_name --sourcearchive $tmp_dir/java-src-pkg.zip --env $env
|
||||
log "Created package $pkg_name"
|
||||
|
||||
log "Checking the status of package"
|
||||
|
||||
@@ -29,7 +29,6 @@ fn2=test-python-env-2-$TEST_ID
|
||||
fn3=test-python-env-3-$TEST_ID
|
||||
fn4=test-python-env-4-$TEST_ID
|
||||
fn5=test-python-env-5-$TEST_ID
|
||||
pkg=
|
||||
|
||||
|
||||
log "Creating v1api environment ..."
|
||||
@@ -50,7 +49,8 @@ log "Creating package ..."
|
||||
pushd $ROOT/test/tests/test_environments/python_src/
|
||||
zip -r $tmp_dir/src-pkg.zip *
|
||||
popd
|
||||
pkg=$(fission package create --src $tmp_dir/src-pkg.zip --env $env_v2api | cut -f2 -d' '| tr -d \')
|
||||
pkg=$(generate_test_id)
|
||||
fission package create --name $pkg --src $tmp_dir/src-pkg.zip --env $env_v2api
|
||||
timeout 60s bash -c "waitBuild $pkg"
|
||||
|
||||
|
||||
|
||||
@@ -33,7 +33,8 @@ fission env create --name $env --image $TS_RUNTIME_IMAGE --version 2 --period 5
|
||||
|
||||
zip -r half_plus_two.zip ./half_plus_two
|
||||
|
||||
pkgName=$(fission package create --deploy half_plus_two.zip --env $env| cut -f2 -d' '| tr -d \')
|
||||
pkgName=$(generate_test_id)
|
||||
fission package create --name $pkgName --deploy half_plus_two.zip --env $env
|
||||
|
||||
# wait for build to finish at most 90s
|
||||
timeout 90 bash -c "waitBuild $pkgName"
|
||||
|
||||
Reference in New Issue
Block a user