Skip to content

functional test script assumes expect binary is installed #712

@nathan-weinberg

Description

@nathan-weinberg

On Fedora 38, you need to manually install the expect binary before running functional-tests.sh (I did this via tox) or you get the following error:

/home/nathan/instruct-lab/cli/.tox/functional/bin/lab
+ for cmd in lab expect
+ type -p lab
+ for cmd in lab expect
+ type -p expect
+ echo 'Error: expect is not installed'
+ exit 1
Error: expect is not installed
functional: exit 1 (5.05 seconds) /home/nathan/instruct-lab/cli> ./scripts/functional-tests.sh pid=10843
  fmt: FAIL code 1 (4.92=setup[4.44]+cmd[0.48] seconds)
  lint: FAIL code 4 (16.89=setup[3.60]+cmd[13.28] seconds)
  unit: OK (4.59=setup[3.41]+cmd[1.18] seconds)
  functional: FAIL code 1 (8.26=setup[3.21]+cmd[5.05] seconds)
  evaluation failed :( (34.69 seconds)

We should automate the installation of this since it's non-default (not sure if that is the same on Mac OS X) - perhaps as part of tox?

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingRelates to testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions