Skip to content

Commit

Permalink
Add another useradd workaround to hopefully fix running in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoanjo committed Jul 2, 2024
1 parent bb8eb69 commit af8650b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scenarios/ruby_dir_interruption_patch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ RUN mkdir /app/rubyspec_temp
RUN chmod 777 /app/rubyspec_temp

# Needed by one of the ruby specs (which is testing access to home)
# @ivoanjo: Locally I get uid 1000, and in CI I'm seeing 1001. I am not sure why they differ, or if any other uids
# can show up. But, if we're missing this for an user, it'll cause the tests to fail so we definitely won't miss it.
RUN useradd -u 1000 -ms /bin/bash someuser
RUN useradd -u 1001 -ms /bin/bash someuser2

CMD bundle exec ddprofrb exec ruby mspec-master/bin/mspec-run --config mspec_config.rb spec-master/core/dir/

0 comments on commit af8650b

Please sign in to comment.