File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 58
58
strategy :
59
59
matrix :
60
60
os : ['ubuntu-latest']
61
- agent : ['puppet7', 'puppet8']
61
+ agent :
62
+ # - puppet7
63
+ - puppet8
62
64
runs-on : ${{ matrix.os }}
63
65
64
66
steps :
Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ def ensure_not_absent; end
82
82
83
83
# Determine if `rustup` has been installed on the system for this user
84
84
def rustup_installed?
85
+ if ENV [ 'RUSTUP_TRACE' ]
86
+ warn ( "rustup_installed? #{ File . file? rustup_path } (#{ rustup_path } )" )
87
+ end
85
88
File . file? rustup_path
86
89
end
87
90
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def exists?
32
32
# The resource thinks we need to install `rustup`.
33
33
def create
34
34
url = URI . parse ( resource [ :installer_source ] )
35
+ warn "create rustup: download #{ url } "
35
36
36
37
# Puppet::Util::Execution.execute can’t accept an IO stream or a string as
37
38
# stdin, so we save the script as a file and pipe it into stdin. (We don’t
Original file line number Diff line number Diff line change 369
369
it 'can remove itself after the user was deleted' do
370
370
rm_user ( 'rustup_test' )
371
371
372
+ puts "default cargo home"
373
+ puts Dir . entries ( "/home/rustup_test" ) . sort rescue puts "no /home/rustup_test"
374
+ puts "run 1"
372
375
puts apply_manifest ( <<~'END' , catch_failures : true , prefix_command : 'RUSTUP_TRACE=1 ' ) . stderr
373
376
user { 'rustup_test':
374
377
ensure => present,
394
397
expect ( file ( '/home/rustup_test/.bashrc' ) . content )
395
398
. to eq %(# .bashrc\n . "$HOME/.cargo/env"\n )
396
399
400
+ puts "run 2"
397
401
puts apply_manifest ( <<~'END' , catch_failures : true , prefix_command : 'RUSTUP_TRACE=1 ' ) . stderr
398
402
user { 'rustup_test':
399
403
ensure => absent,
424
428
it 'can remove itself after the user was deleted (with custom cargo_home)' do
425
429
rm_user ( 'rustup_test' )
426
430
431
+ puts "custom cargo_home"
432
+ puts Dir . entries ( "/home/rustup_test" ) . sort rescue puts "no /home/rustup_test"
433
+ puts "run 1"
427
434
puts apply_manifest ( <<~'END' , catch_failures : true , prefix_command : 'RUSTUP_TRACE=1 ' ) . stderr
428
435
user { 'rustup_test':
429
436
ensure => present,
459
466
expect ( file ( '/home/rustup_test/.bashrc' ) . content )
460
467
. to eq %(# .bashrc\n . "/home/rustup_test/a/b/.cargo/env"\n )
461
468
469
+ puts "run 2"
462
470
puts apply_manifest ( <<~'END' , catch_failures : true , prefix_command : 'RUSTUP_TRACE=1 ' ) . stderr
463
471
user { 'rustup_test':
464
472
ensure => absent,
You can’t perform that action at this time.
0 commit comments