Fix directory error in version bump test task
This commit is contained in:
parent
1e9f60db25
commit
c95ed6c918
@ -124,7 +124,7 @@ tasks:
|
|||||||
|
|
||||||
# Now test the upgrade using the newer version
|
# Now test the upgrade using the newer version
|
||||||
which ../tw # Should be here from previous step
|
which ../tw # Should be here from previous step
|
||||||
../tw --profile outdated_profile fetch_user michaelmalice # Any operation other than `create_profile` should trigger the upgrade
|
../tw fetch_user michaelmalice # Any operation other than `create_profile` should trigger the upgrade
|
||||||
|
|
||||||
duration=$SECONDS
|
duration=$SECONDS
|
||||||
echo "Task completed in $(($duration / 60))m$(($duration % 60))s."
|
echo "Task completed in $(($duration / 60))m$(($duration % 60))s."
|
||||||
|
@ -87,7 +87,7 @@ func (p Profile) check_and_update_version() error {
|
|||||||
if ENGINE_DATABASE_VERSION > version {
|
if ENGINE_DATABASE_VERSION > version {
|
||||||
fmt.Printf(terminal_utils.COLOR_YELLOW)
|
fmt.Printf(terminal_utils.COLOR_YELLOW)
|
||||||
fmt.Printf("================================================\n")
|
fmt.Printf("================================================\n")
|
||||||
fmt.Printf("Database version is out of date. Upgrading database from version v%d to version v%d!\n", version, ENGINE_DATABASE_VERSION)
|
fmt.Printf("Database version is out of date. Upgrading database from version %d to version %d!\n", version, ENGINE_DATABASE_VERSION)
|
||||||
fmt.Printf(terminal_utils.COLOR_RESET)
|
fmt.Printf(terminal_utils.COLOR_RESET)
|
||||||
return p.UpgradeFromXToY(version, ENGINE_DATABASE_VERSION)
|
return p.UpgradeFromXToY(version, ENGINE_DATABASE_VERSION)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user