Diff of the two buildlogs: -- --- b1/build.log 2024-05-10 08:31:36.892452956 +0000 +++ b2/build.log 2024-05-10 08:33:56.146528120 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu May 9 20:28:26 -12 2024 -I: pbuilder-time-stamp: 1715329706 +I: Current time: Fri Jun 13 04:54:40 +14 2025 +I: pbuilder-time-stamp: 1749740080 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -33,52 +33,84 @@ dpkg-source: info: applying fix-test-for-tape-5.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1045281/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2401490/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jun 12 14:54 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2401490/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2401490/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='359f7cb106f74dbca9c46fef39aaeb6d' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='1045281' - PS1='# ' - PS2='> ' + INVOCATION_ID=c31b62bd0e8642f6b4b23d3e1dcceaf3 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2401490 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.y2arlLZx/pbuilderrc_Jr1v --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.y2arlLZx/b1 --logfile b1/build.log node-proxyquire_2.1.3+~1.0.1+~1.0.2-12.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.y2arlLZx/pbuilderrc_upy9 --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.y2arlLZx/b2 --logfile b2/build.log node-proxyquire_2.1.3+~1.0.1+~1.0.2-12.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.6.13+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1~bpo12+1 (2024-02-15) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 7 11:25 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1045281/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 11 17:46 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2401490/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -446,7 +478,7 @@ Get: 312 http://deb.debian.org/debian trixie/main amd64 node-should all 13.2.3~dfsg-7 [50.0 kB] Get: 313 http://deb.debian.org/debian trixie/main amd64 pandoc-data all 3.1.3-2 [445 kB] Get: 314 http://deb.debian.org/debian trixie/main amd64 pandoc amd64 3.1.3+ds-3 [24.3 MB] -Fetched 67.9 MB in 2s (32.5 MB/s) +Fetched 67.9 MB in 11s (5956 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19699 files and directories currently installed.) @@ -1723,7 +1755,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/node-proxyquire-2.1.3+~1.0.1+~1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../node-proxyquire_2.1.3+~1.0.1+~1.0.2-12_source.changes +I: user script /srv/workspace/pbuilder/2401490/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/2401490/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/node-proxyquire-2.1.3+~1.0.1+~1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../node-proxyquire_2.1.3+~1.0.1+~1.0.2-12_source.changes dpkg-buildpackage: info: source package node-proxyquire dpkg-buildpackage: info: source version 2.1.3+~1.0.1+~1.0.2-12 dpkg-buildpackage: info: source distribution unstable @@ -1851,73 +1887,73 @@ ln --force --symbolic ../../Xkeys debian/node_modules/fill-keys NODE_PATH=debian/node_modules \ find test -maxdepth 1 -type f -name '*.js' -not -path 'test/proxyquire-global.js' -exec mocha --reporter tap --no-config --no-opts --no-package --no-timeout --require should {} + -ok 1 When resolving foo that requires stubbed /not/existing/bar.json throws an error -ok 2 When resolving foo that requires stubbed /not/existing/bar.json with @noCallThru resolves foo with stubbed bar -ok 3 When resolving foo that requires stubbed /not/existing/bar.json with noCallThru() resolves foo with stubbed bar -ok 4 When resolving foo-relative that requires relative stubbed ../not/existing/bar.json with @noCallThru resolves foo-relative with stubbed bar -ok 5 When resolving foo that requires bar and stubbed baz where bar requires unstubbed baz does not stub baz in bar -ok 6 When resolving foo that requires bar and stubbed baz where bar requires unstubbed baz does not affect a normal baz import -ok 7 When requiring relative paths, they should be relative to the proxyrequired module should return the correct result -ok 8 when I try to use compat mode should let me know that I need to fix my code or downgrade -ok 9 Proxyquire load() defaults to preserving the cache -ok 10 Proxyquire load() does not pollute the cache when module is proxyquired before it is loaded -ok 11 Proxyquire preserveCache() returns a reference to itself, so it can be chained -ok 12 Proxyquire preserveCache() has Proxyquire restore the cache for the module -ok 13 Proxyquire preserveCache() allows Singletons to function properly -ok 14 Proxyquire noPreserveCache() returns a reference to itself, so it can be chained -ok 15 Proxyquire noPreserveCache() forces subsequent requires to reload the proxied module -ok 16 Proxyquire noPreserveCache() deletes the require.cache for the module being stubbed -ok 17 Proxyquire noPreserveCache() deletes the require.cache for the stubs -ok 18 Proxyquire noPreserveCache() silences errors when stub lookups fail -ok 19 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with boofber stub as boof. foo is required 1 times -ok 20 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with boofber stub as boof. foo's boof is boofber foo.boof == boofber -ok 21 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with foonumber stub as foonum. foo is required 1 times -ok 22 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with foonumber stub as foonum. foo's foonum is foonumber foo.foonum == foonumber -ok 23 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with fooboolber stub as foobool. foo is required 1 times -ok 24 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with fooboolber stub as foobool. foo's foobool is fooboolber foo.foobool == fooboolber -ok 25 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as fooarray. foo is required 1 times -ok 26 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as fooarray. foo's fooarray is fooarray foo.fooarray is fooarray -ok 27 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty. foo is required 1 times -ok 28 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty. foo's fooarray is the original foo.fooarray is empty -ok 29 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty with @noCallThru. foo is required 1 times -ok 30 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty with @noCallThru. foo's fooarray is empty foo.fooarray is empty -ok 31 Illegal parameters to resolve give meaningful errors when I pass no request throws an exception explaining that a request path must be provided -ok 32 Illegal parameters to resolve give meaningful errors when I pass an object as a request throws an exception explaining that request needs to be a requirable string -ok 33 Illegal parameters to resolve give meaningful errors when I pass no stubs throws an exception explaining that resolve without stubs makes no sense -ok 34 Illegal parameters to resolve give meaningful errors when I pass a string as stubs throws an exception explaining that stubs need to be an object -ok 35 Illegal parameters to resolve give meaningful errors when I pass an undefined stub throws an exception with the stub key -ok 36 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. foo is required 2 times -ok 37 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. foo's bar is unchanged foo.bigBar() == "BAR" -ok 38 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigBar() == "BARBER" -ok 39 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigExt("/folder/test.ext") == ".EXT" -ok 40 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigBas("/folder/test.ext") == "TEST.EXT" -ok 41 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve overrides behavior when module is required inside function call -ok 42 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve overrides behavior when module is required on top of file -ok 43 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve and then delete overrides of stubs after resolve reverts to original behavior when module is required inside function call -ok 44 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve and then delete overrides of stubs after resolve doesn't properly revert to original behavior when module is required on top of file -ok 45 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was not changed globally or for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 46 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was not changed globally or for path module foo.bigBas(file) == "TEST.EXT" -ok 47 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru is turned off for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 48 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru is turned off for path module foo.bigBas(file) throws -ok 49 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and not changed for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 50 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and not changed for path module foo.bigBas(file) throws -ok 51 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 52 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on for path module foo.bigBas(file) == "TEST.EXT" -ok 53 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on globally foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" -ok 54 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on globally foo.bigBas(file) == "TEST.EXT" -ok 55 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 foo1.bigBar() == "BAR1" -ok 56 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 foo2.bigBar() == "BAR2" -ok 57 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 and I change bar1.bar() to return barone foo1.bigBar() == "BARONE" -ok 58 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 and I change bar1.bar() to return barone foo2.bigBar() == "BAR2" -ok 59 when I require stubs with different extensions intercepts [] object -ok 60 when I require stubs with different extensions intercepts [] function -ok 61 when I require stubs with different extensions intercepts [.json] object -ok 62 when I require stubs with different extensions intercepts [.node] object -ok 63 When resolving foo that requires nulled file package throws an error -ok 64 When resolving foo that optionally requires nulled crypto package catches when resolving crypto -ok 65 api default export proxyquire can load -ok 66 api default export proxyquire can callThru and then load -ok 67 api default export proxyquire can noCallThru and then load +ok 1 api default export proxyquire can load +ok 2 api default export proxyquire can callThru and then load +ok 3 api default export proxyquire can noCallThru and then load +ok 4 when I require stubs with different extensions intercepts [] object +ok 5 when I require stubs with different extensions intercepts [] function +ok 6 when I require stubs with different extensions intercepts [.json] object +ok 7 when I require stubs with different extensions intercepts [.node] object +ok 8 Illegal parameters to resolve give meaningful errors when I pass no request throws an exception explaining that a request path must be provided +ok 9 Illegal parameters to resolve give meaningful errors when I pass an object as a request throws an exception explaining that request needs to be a requirable string +ok 10 Illegal parameters to resolve give meaningful errors when I pass no stubs throws an exception explaining that resolve without stubs makes no sense +ok 11 Illegal parameters to resolve give meaningful errors when I pass a string as stubs throws an exception explaining that stubs need to be an object +ok 12 Illegal parameters to resolve give meaningful errors when I pass an undefined stub throws an exception with the stub key +ok 13 when I try to use compat mode should let me know that I need to fix my code or downgrade +ok 14 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. foo is required 2 times +ok 15 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. foo's bar is unchanged foo.bigBar() == "BAR" +ok 16 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigBar() == "BARBER" +ok 17 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigExt("/folder/test.ext") == ".EXT" +ok 18 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. only stubbed modules have overrides in foober foober.bigBas("/folder/test.ext") == "TEST.EXT" +ok 19 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve overrides behavior when module is required inside function call +ok 20 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve overrides behavior when module is required on top of file +ok 21 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve and then delete overrides of stubs after resolve reverts to original behavior when module is required inside function call +ok 22 Given foo requires the bar and path modules and bar.bar() returns "bar" When I resolve foo with no overrides to bar as foo and resolve foo with barber stub as foober. when I override keys of stubs after resolve and then delete overrides of stubs after resolve doesn't properly revert to original behavior when module is required on top of file +ok 23 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was not changed globally or for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 24 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was not changed globally or for path module foo.bigBas(file) == "TEST.EXT" +ok 25 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru is turned off for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 26 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru is turned off for path module foo.bigBas(file) throws +ok 27 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and not changed for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 28 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and not changed for path module foo.bigBas(file) throws +ok 29 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on for path module foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 30 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on for path module foo.bigBas(file) == "TEST.EXT" +ok 31 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on globally foo.bigExt(file) == "OVERRIDE /FOLDER/TEST.EXT" +ok 32 Given foo requires the bar and path modules and bar.bar() returns "bar" When foo.bigExt() returns capitalized path.extname and foo.bigBas() returns capitalized path.basename and path.extname(file) is stubbed to return "override " + file and callThru was turned off globally and turned back on globally foo.bigBas(file) == "TEST.EXT" +ok 33 When requiring relative paths, they should be relative to the proxyrequired module should return the correct result +ok 34 When resolving foo that requires nulled file package throws an error +ok 35 When resolving foo that optionally requires nulled crypto package catches when resolving crypto +ok 36 Proxyquire load() defaults to preserving the cache +ok 37 Proxyquire load() does not pollute the cache when module is proxyquired before it is loaded +ok 38 Proxyquire preserveCache() returns a reference to itself, so it can be chained +ok 39 Proxyquire preserveCache() has Proxyquire restore the cache for the module +ok 40 Proxyquire preserveCache() allows Singletons to function properly +ok 41 Proxyquire noPreserveCache() returns a reference to itself, so it can be chained +ok 42 Proxyquire noPreserveCache() forces subsequent requires to reload the proxied module +ok 43 Proxyquire noPreserveCache() deletes the require.cache for the module being stubbed +ok 44 Proxyquire noPreserveCache() deletes the require.cache for the stubs +ok 45 Proxyquire noPreserveCache() silences errors when stub lookups fail +ok 46 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 foo1.bigBar() == "BAR1" +ok 47 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 foo2.bigBar() == "BAR2" +ok 48 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 and I change bar1.bar() to return barone foo1.bigBar() == "BARONE" +ok 49 Multiple requires of same module don't affect each other Given I require foo stubbed with bar1 as foo1 and foo stubbed with bar2 as foo2 and I change bar1.bar() to return barone foo2.bigBar() == "BAR2" +ok 50 When resolving foo that requires bar and stubbed baz where bar requires unstubbed baz does not stub baz in bar +ok 51 When resolving foo that requires bar and stubbed baz where bar requires unstubbed baz does not affect a normal baz import +ok 52 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with boofber stub as boof. foo is required 1 times +ok 53 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with boofber stub as boof. foo's boof is boofber foo.boof == boofber +ok 54 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with foonumber stub as foonum. foo is required 1 times +ok 55 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with foonumber stub as foonum. foo's foonum is foonumber foo.foonum == foonumber +ok 56 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with fooboolber stub as foobool. foo is required 1 times +ok 57 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with fooboolber stub as foobool. foo's foobool is fooboolber foo.foobool == fooboolber +ok 58 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as fooarray. foo is required 1 times +ok 59 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as fooarray. foo's fooarray is fooarray foo.fooarray is fooarray +ok 60 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty. foo is required 1 times +ok 61 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty. foo's fooarray is the original foo.fooarray is empty +ok 62 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty with @noCallThru. foo is required 1 times +ok 63 Given foo requires the boof, foonum and foobool modules and boof is a string, foonum is a Number and foobool is a bool When I resolve foo with ./fooarray stub as empty with @noCallThru. foo's fooarray is empty foo.fooarray is empty +ok 64 When resolving foo that requires stubbed /not/existing/bar.json throws an error +ok 65 When resolving foo that requires stubbed /not/existing/bar.json with @noCallThru resolves foo with stubbed bar +ok 66 When resolving foo that requires stubbed /not/existing/bar.json with noCallThru() resolves foo with stubbed bar +ok 67 When resolving foo-relative that requires relative stubbed ../not/existing/bar.json with @noCallThru resolves foo-relative with stubbed bar # tests 67 # pass 67 # fail 0 @@ -1984,12 +2020,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/2401490/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2401490/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/1045281 and its subdirectories -I: Current time: Thu May 9 20:31:36 -12 2024 -I: pbuilder-time-stamp: 1715329896 +I: removing directory /srv/workspace/pbuilder/2401490 and its subdirectories +I: Current time: Fri Jun 13 04:56:54 +14 2025 +I: pbuilder-time-stamp: 1749740214