Skip to content

Commit 16e7e75

Browse files
authored
Merge pull request #27 from anyvm-org/dev
sync
2 parents bc6fb87 + 5747546 commit 16e7e75

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/testrun.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,22 @@ jobs:
9090
echo "anyvm" > ${mountdir}/justcheck.txt
9191
echo "anyvm" > ${mountdir}/.dotfile
9292
mkdir -p ../test_output
93-
python anyvm.py --debug --data-dir ../test_output --os "${{ inputs.os }}" --release "${{ inputs.release }}" --arch "${{ inputs.arch }}" -d -v "${mountdir}:${{ inputs.vmpath }}" --ssh-port 10022 --ssh-name "testname" -p 20022:22 --nc "${{ inputs.nc }}" --sync "${{ inputs.sync }}" --sync-time
93+
python anyvm.py --debug --data-dir ../test_output --os "${{ inputs.os }}" --release "${{ inputs.release }}" --arch "${{ inputs.arch }}" -d -v "${mountdir}:${{ inputs.vmpath }}" --ssh-port 10022 --ssh-name "testname" -p 20022:22 --nc "${{ inputs.nc }}" --sync "${{ inputs.sync }}" --sync-time --remote-vnc no
9494
# We use the ssh port as an alias to the vm, so we can use 'ssh $port' to login
9595
echo "===============test 1"
9696
${{ inputs.sleep }}
97-
ssh -v 10022 ls -lah ${{ inputs.vmpath }}
97+
ssh -v 10022 ls -lah ${{ inputs.vmpath }};
9898
echo "===============test 2"
9999
${{ inputs.sleep }}
100-
ssh -v 10022 ls ${{ inputs.vmpath }} | grep justcheck.txt
100+
ssh -v 10022 ls ${{ inputs.vmpath }} | grep justcheck.txt;
101101
${{ inputs.sleep }}
102-
ssh -v 10022 ls -lah ${{ inputs.vmpath }} | grep '.dotfile'
102+
ssh -v 10022 ls -lah ${{ inputs.vmpath }} | grep '.dotfile';
103103
echo "===============test 3"
104104
${{ inputs.sleep }}
105-
ssh -v testname ls ${{ inputs.vmpath }} | grep justcheck.txt
105+
ssh -v testname ls ${{ inputs.vmpath }} | grep justcheck.txt;
106106
echo "===============test 4"
107107
${{ inputs.sleep }}
108-
ssh -v -p 20022 -o StrictHostKeyChecking=accept-new ${{ inputs.user }}@localhost ls ${{ inputs.vmpath }} | grep justcheck.txt
108+
ssh -v -p 20022 -o StrictHostKeyChecking=accept-new ${{ inputs.user }}@localhost ls ${{ inputs.vmpath }} | grep justcheck.txt;
109109
110110

111111

anyvm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ def debuglog(enabled, msg):
187187

188188
def is_browser_available():
189189
"""Returns True if the current environment can likely open a local browser."""
190+
# Always return False in CI environments
191+
if os.environ.get("GITHUB_ACTIONS") == "true":
192+
return False
193+
190194
try:
191195
if IS_WINDOWS:
192196
return True

0 commit comments

Comments
 (0)