Skip to content

Commit

Permalink
move failing tests in a dedicated package
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Nov 15, 2023
1 parent e4def26 commit 6499378
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/BaselineOfPharoLauncher/BaselineOfPharoLauncher.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ BaselineOfPharoLauncher >> baseline: spec [
spec requires: #('PharoLauncher-Tests-Core' ). ];
package: 'PharoLauncher-Tests-Functional' with: [
spec requires: #('PharoLauncher-Core' 'PharoLauncher-Tests-Download'). ];
package: 'PharoLauncher-Tests-Functional-Debug' with: [
spec requires: #('PharoLauncher-Tests-Functional' 'PharoLauncher-Core' 'PharoLauncher-Tests-Download'). ];
package: 'PharoLauncher-CLI' with: [
spec requires: #('Clap') ];
package: 'PharoLauncher-CLI-Tests' with: [
Expand All @@ -53,6 +55,7 @@ BaselineOfPharoLauncher >> baseline: spec [
'PharoLauncher-Spec2'
'PharoLauncher-Tests-SpecUI'
'PharoLauncher-Tests-Functional'
'PharoLauncher-Tests-Functional-Debug'
'PharoLauncher-CLI-Tests'
'PharoLauncher-GToolkit'
'PharoLauncher-Squeak') ]
Expand Down
2 changes: 1 addition & 1 deletion src/PharoLauncher-Core/PhLVirtualMachineManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ PhLVirtualMachineManager >> imageVersion [
[ [ self imageVersionFromFile ]
on: PhLImageVersionDeterminationError
do: [ "no version file, generate it"
[ self imageVersionFromFileWith: (self imageVersionCommandWithPreferences: false) ]
[ 1 halt. self imageVersionFromFileWith: (self imageVersionCommandWithPreferences: false) ]
on: PhLImageVersionDeterminationError, PhLProcessTimeOut
do: [ "Command probably failed, try to run without --no-default-preferences option (only available since Pharo 3.0)"
self imageVersionFromFileWith: (self imageVersionCommandWithPreferences: true) ] ] ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Class {
'vmStoreBackup',
'tempVmStoreFolder'
],
#category : #'PharoLauncher-Tests-Functional'
#category : #'PharoLauncher-Tests-Functional-Debug'
}

{ #category : #accessing }
Expand Down Expand Up @@ -49,7 +49,7 @@ PhLVirtualMachineManagerFunctionalTest >> testCanGetImageVersion [
self timeLimit: 30 seconds.

PhLVirtualMachineManagerTestResource current
withCopyOfPharo90ImageDo: [ :imageRef |
withCopyOfPharo90ImageDo: [ :imageRef | 1 halt.
version := (PhLVirtualMachineManager forImage: imageRef)
imageVersion.
self assert: version equals: '90' ]
Expand Down
1 change: 1 addition & 0 deletions src/PharoLauncher-Tests-Functional-Debug/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'PharoLauncher-Tests-Functional-Debug' }

0 comments on commit 6499378

Please sign in to comment.